From: Nitin A Kamble <[email protected]> Add machine configuration for the eMenlow, Crownbay and FRI2 platforms in the intel-core2-32 BSP image.
Signed-off-by: Nitin A Kamble <[email protected]> --- .../intel-core2-32/crownbay/alsa.conf | 17 + .../intel-core2-32/crownbay/alsa.state | 684 +++++++++++++++++++++ .../intel-core2-32/crownbay/crownbay.vars | 16 + .../intel-core2-32/crownbay/formfactor.machconfig | 3 + .../intel-core2-32/crownbay/network.interfaces | 9 + .../machinesetuptool/intel-core2-32/defaults | 10 + .../machinesetuptool/intel-core2-32/detect-machine | 49 ++ .../intel-core2-32/emenlow/alsa.conf | 17 + .../intel-core2-32/emenlow/alsa.state | 143 +++++ .../intel-core2-32/emenlow/emenlow.vars | 16 + .../intel-core2-32/emenlow/formfactor.machconfig | 3 + .../intel-core2-32/emenlow/network.interfaces | 9 + .../intel-core2-32/emenlow/xorg.conf | 22 + .../machinesetuptool/intel-core2-32/fri2/alsa.conf | 17 + .../intel-core2-32/fri2/alsa.state | 411 +++++++++++++ .../intel-core2-32/fri2/formfactor.machconfig | 3 + .../machinesetuptool/intel-core2-32/fri2/fri2.vars | 19 + .../intel-core2-32/fri2/network.interfaces | 9 + .../machinesetuptool/machinesetuptool_git.bbappend | 34 + 19 files changed, 1491 insertions(+) create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.conf create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.state create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/crownbay.vars create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/formfactor.machconfig create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/network.interfaces create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/defaults create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.conf create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.state create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/emenlow.vars create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/formfactor.machconfig create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/network.interfaces create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/xorg.conf create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.conf create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.state create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/formfactor.machconfig create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/fri2.vars create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/network.interfaces diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.conf b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.conf new file mode 100644 index 0000000..dd2b7ff --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.conf @@ -0,0 +1,17 @@ +# Global alsa-lib configuration +pcm.pulse { + type pulse +} + +ctl.pulse { + type pulse +} + +pcm.!default { + type pulse +} + +ctl.!default { + type pulse +} + diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.state b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.state new file mode 100644 index 0000000..bd57679 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/alsa.state @@ -0,0 +1,684 @@ +state.MID { + control.1 { + iface MIXER + name 'Front Playback Volume' + value.0 31 + value.1 31 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.2 { + iface MIXER + name 'Front Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.3 { + iface MIXER + name 'Surround Playback Volume' + value.0 31 + value.1 31 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.4 { + iface MIXER + name 'Surround Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.5 { + iface MIXER + name 'Center Playback Volume' + value 31 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 0 + } + } + control.6 { + iface MIXER + name 'LFE Playback Volume' + value 31 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 0 + } + } + control.7 { + iface MIXER + name 'Center Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.8 { + iface MIXER + name 'LFE Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.9 { + iface MIXER + name 'Side Playback Volume' + value.0 31 + value.1 31 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.10 { + iface MIXER + name 'Side Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.11 { + iface MIXER + name 'Headphone Playback Volume' + value.0 31 + value.1 31 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.12 { + iface MIXER + name 'Headphone Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.13 { + iface MIXER + name 'Rear Mic Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.14 { + iface MIXER + name 'Rear Mic Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.15 { + iface MIXER + name 'Front Mic Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.16 { + iface MIXER + name 'Front Mic Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.17 { + iface MIXER + name 'Line Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.18 { + iface MIXER + name 'Line Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.19 { + iface MIXER + name 'CD Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.20 { + iface MIXER + name 'CD Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.21 { + iface MIXER + name 'Auto-Mute Mode' + value Enabled + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 Disabled + item.1 Enabled + } + } + control.22 { + iface MIXER + name 'Input Source' + value 'Rear Mic' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Rear Mic' + item.1 'Front Mic' + item.2 Line + item.3 CD + } + } + control.23 { + iface MIXER + name 'Input Source' + index 1 + value 'Rear Mic' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Rear Mic' + item.1 'Front Mic' + item.2 Line + item.3 CD + } + } + control.24 { + iface MIXER + name 'Capture Volume' + value.0 19 + value.1 19 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -1650 + dbmax 3000 + dbvalue.0 1200 + dbvalue.1 1200 + } + } + control.25 { + iface MIXER + name 'Capture Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.26 { + iface MIXER + name 'Capture Volume' + index 1 + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -1650 + dbmax 3000 + dbvalue.0 -1650 + dbvalue.1 -1650 + } + } + control.27 { + iface MIXER + name 'Capture Switch' + index 1 + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.28 { + iface MIXER + name 'Rear Mic Boost Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 3' + dbmin 0 + dbmax 3000 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.29 { + iface MIXER + name 'Front Mic Boost Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 3' + dbmin 0 + dbmax 3000 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.30 { + iface MIXER + name 'Line Boost Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 3' + dbmin 0 + dbmax 3000 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.31 { + iface MIXER + name 'IEC958 Playback Con Mask' + value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.32 { + iface MIXER + name 'IEC958 Playback Pro Mask' + value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.33 { + iface MIXER + name 'IEC958 Playback Default' + value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write' + type IEC958 + count 1 + } + } + control.34 { + iface MIXER + name 'IEC958 Playback Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.35 { + iface MIXER + name 'IEC958 Default PCM Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.36 { + iface MIXER + name 'IEC958 Capture Switch' + value false + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.37 { + iface MIXER + name 'IEC958 Capture Default' + value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.38 { + iface MIXER + name 'Master Playback Volume' + value 17 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 -2100 + } + } + control.39 { + iface MIXER + name 'Master Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.40 { + iface CARD + name 'Rear Mic Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.41 { + iface CARD + name 'Front Mic Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.42 { + iface CARD + name 'Line Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.43 { + iface CARD + name 'CD Phantom Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } + control.44 { + iface CARD + name 'Line Out Front Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } + control.45 { + iface CARD + name 'Line Out Surround Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.46 { + iface CARD + name 'Line Out CLFE Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.47 { + iface CARD + name 'Line Out Side Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.48 { + iface CARD + name 'Front Headphone Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.49 { + iface CARD + name 'SPDIF Phantom Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } + control.50 { + iface CARD + name 'SPDIF In Phantom Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } + control.51 { + iface PCM + name 'Playback Channel Map' + value.0 0 + value.1 0 + value.2 0 + value.3 0 + value.4 0 + value.5 0 + value.6 0 + value.7 0 + comment { + access read + type INTEGER + count 8 + range '0 - 36' + } + } + control.52 { + iface PCM + name 'Capture Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } + control.53 { + iface PCM + device 1 + name 'Playback Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } + control.54 { + iface PCM + device 1 + name 'Capture Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } + control.55 { + iface PCM + device 2 + name 'Capture Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } +} diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/crownbay.vars b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/crownbay.vars new file mode 100644 index 0000000..2fb7dcd --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/crownbay.vars @@ -0,0 +1,16 @@ +BRIEF_DESCRIPTION="Intel crownbay board with open source graphics stack" +FORMFACTOR_FILE="formfactor.machconfig" +PULSEAUDIO_DEFAULT_SINK="0" +PULSEAUDIO_DEFAULT_SOURCE="0" +ALSA_CONFIG_FILE="alsa.conf" +ALSA_STATE_FILE="alsa.state" +XORG_CONFIG_FILE="" +NETWORK_INTERFACES_FILE="network.interfaces" +AUTOLOAD_KERNEL_MODULES="" +PROHIBIT_KERNEL_MODULES="gma500_gfx" +EXTRA_KERNEL_PARAMETERS="console=ttyS0,115200 console=tty0 video=vesafb vga=0x318" +SYSLINUX_SERIAL_CONFIG="SERIAL 0 115200" +GRUB_SERIAL_CONFIG="" +GETTY_SERIAL_CONSOLES="115200;ttyS0" +SETUP_SCRIPTS="" +REBOOT_AFTER_SETUP="no" diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/formfactor.machconfig b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/formfactor.machconfig new file mode 100644 index 0000000..ffce012 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/formfactor.machconfig @@ -0,0 +1,3 @@ +# Assume a USB mouse and keyboard are connected +HAVE_TOUCHSCREEN=0 +HAVE_KEYBOARD=1 diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/network.interfaces b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/network.interfaces new file mode 100644 index 0000000..f5bb946 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/crownbay/network.interfaces @@ -0,0 +1,9 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wired or wireless interfaces +auto eth0 +iface eth0 inet dhcp diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/defaults b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/defaults new file mode 100644 index 0000000..81d1d63 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/defaults @@ -0,0 +1,10 @@ + +SUPPORTED_MACHINES="emenlow crownbay fri2" + +# Allowed Options: +# "detect" : Try to detect the target platform +# "ask" : Prompt user for the target platform at boottime +# "detect-ask" : try detecting first, if does not work them prompt the user +# "" : do not change anything on target +# or any of the machine listed in the SUPPORTED_MACHINES variable +MACHINE="detect-ask" diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/detect-machine b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/detect-machine index e69de29..7fab888 100644 --- a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/detect-machine +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/detect-machine @@ -0,0 +1,49 @@ +#!/bin/sh + +# The machine detection logic will be provided by the BSP layer. +# On a successful machine detection, the variable MACHINE will be set + +detect_intel_platform() { + system_manufacturer=`dmidecode -s system-manufacturer | grep -v ^#` + system_product_name=`dmidecode -s system-product-name | grep -v ^#` + bios_vendor=`dmidecode -s bios-vendor | grep -v ^#` + bios_version=`dmidecode -s bios-version | grep -v ^#` + bios_release_date=`dmidecode -s bios-release-date | grep -v ^#` + system_version=`dmidecode -s system-version | grep -v ^#` + baseboard_manufacturer=`dmidecode -s baseboard-manufacturer | grep -v ^#` + baseboard_product_name=`dmidecode -s baseboard-product-name | grep -v ^#` + baseboard_version=`dmidecode -s baseboard-version | grep -v ^#` + chassis_version=`dmidecode -s chassis-version | grep -v ^#` + processor_family=`dmidecode -s processor-family | grep -v ^#` + processor_manufacturer=`dmidecode -s processor-manufacturer | grep -v ^#` + processor_version=`dmidecode -s processor-version | grep -v ^#` + + if ( [ "${processor_version}" = "Intel(R) Atom(TM) CPU Z530 @ 1.60GHz " ] \ + && [ "${bios_vendor}" = "American Megatrends Inc." ] ) + then + MACHINE="emenlow" + echo Detected Machine: "$MACHINE" + + elif ( [ "${system_manufacturer}" = "Intel Corp." ] \ + && [ "${system_product_name}" = "Fish River Island II" ] \ + && [ "${bios_version}" = "Tiano-TunnelCreek" ] ) + then + MACHINE="fri2" + echo Detected Machine: "$MACHINE" + elif ( [ "${processor_version}" = "Intel(R) Atom(TM) CPU E660 @ 1.30GHz" ] \ + && [ "${bios_vendor}" = "American Megatrends Inc." ] \ + && [ "${bios_version}" = "4.6.3" ] ) + then + MACHINE="crownbay" + echo Detected Machine: "$MACHINE" + else + echo Could not detect the target machine. + fi + +} + +case `uname -m` in + i*86 ) + detect_intel_platform + ;; +esac diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.conf b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.conf new file mode 100644 index 0000000..dd2b7ff --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.conf @@ -0,0 +1,17 @@ +# Global alsa-lib configuration +pcm.pulse { + type pulse +} + +ctl.pulse { + type pulse +} + +pcm.!default { + type pulse +} + +ctl.!default { + type pulse +} + diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.state b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.state new file mode 100644 index 0000000..5614cff --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/alsa.state @@ -0,0 +1,143 @@ +state.MID { + control.1 { + iface MIXER + name 'Master Playback Volume' + value.0 17 + value.1 17 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -4650 + dbmax 0 + dbvalue.0 -2100 + dbvalue.1 -2100 + } + } + control.2 { + iface MIXER + name 'Master Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.3 { + iface MIXER + name 'Mic Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.4 { + iface MIXER + name 'Mic Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.5 { + iface MIXER + name 'Capture Volume' + value.0 16 + value.1 16 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -1200 + dbmax 3450 + dbvalue.0 1200 + dbvalue.1 1200 + } + } + control.6 { + iface MIXER + name 'Capture Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.7 { + iface MIXER + name 'Mic Boost Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 3' + dbmin 0 + dbmax 3000 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.8 { + iface CARD + name 'Mic Jack' + value false + comment { + access read + type BOOLEAN + count 1 + } + } + control.9 { + iface CARD + name 'Line Out Jack' + value true + comment { + access read + type BOOLEAN + count 1 + } + } + control.10 { + iface PCM + name 'Playback Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } + control.11 { + iface PCM + name 'Capture Channel Map' + value.0 0 + value.1 0 + comment { + access read + type INTEGER + count 2 + range '0 - 36' + } + } +} diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/emenlow.vars b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/emenlow.vars new file mode 100644 index 0000000..72d0056 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/emenlow.vars @@ -0,0 +1,16 @@ +BRIEF_DESCRIPTION="eMenlow platform with open source graphics stack" +FORMFACTOR_FILE="formfactor.machconfig" +PULSEAUDIO_DEFAULT_SINK="0" +PULSEAUDIO_DEFAULT_SOURCE="0" +ALSA_CONFIG_FILE="alsa.conf" +ALSA_STATE_FILE="alsa.state" +XORG_CONFIG_FILE="xorg.conf" +NETWORK_INTERFACES_FILE="network.interfaces" +AUTOLOAD_KERNEL_MODULES="" +PROHIBIT_KERNEL_MODULES="" +EXTRA_KERNEL_PARAMETERS="console=ttyS3,115200 console=tty0 reboot=pci" +SYSLINUX_SERIAL_CONFIG="SERIAL 0 115200" +GRUB_SERIAL_CONFIG="" +GETTY_SERIAL_CONSOLES="115200;ttyS3" +SETUP_SCRIPTS="" +REBOOT_AFTER_SETUP="no" diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/formfactor.machconfig b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/formfactor.machconfig new file mode 100644 index 0000000..ffce012 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/formfactor.machconfig @@ -0,0 +1,3 @@ +# Assume a USB mouse and keyboard are connected +HAVE_TOUCHSCREEN=0 +HAVE_KEYBOARD=1 diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/network.interfaces b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/network.interfaces new file mode 100644 index 0000000..f5bb946 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/network.interfaces @@ -0,0 +1,9 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wired or wireless interfaces +auto eth0 +iface eth0 inet dhcp diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/xorg.conf b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/xorg.conf new file mode 100644 index 0000000..3316e54 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/emenlow/xorg.conf @@ -0,0 +1,22 @@ +Section "Device" + Identifier "gma500" + Driver "modesetting" + Option "SWCursor" "ON" +EndSection + +Section "Monitor" + Identifier "Generic Monitor" + Option "DPMS" +EndSection + +Section "Screen" + Identifier "Default Screen" + Device "gma500" + Monitor "Generic Monitor" + DefaultDepth 24 +EndSection + +Section "ServerLayout" + Identifier "Default Layout" + Screen "Default Screen" +EndSection diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.conf b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.conf new file mode 100644 index 0000000..dd2b7ff --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.conf @@ -0,0 +1,17 @@ +# Global alsa-lib configuration +pcm.pulse { + type pulse +} + +ctl.pulse { + type pulse +} + +pcm.!default { + type pulse +} + +ctl.!default { + type pulse +} + diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.state b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.state new file mode 100644 index 0000000..8a89f0b --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/alsa.state @@ -0,0 +1,411 @@ +state.MID { + control.1 { + iface MIXER + name 'PCM Playback Volume' + value.0 24 + value.1 24 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 30' + dbmin -4500 + dbmax 0 + dbvalue.0 -900 + dbvalue.1 -900 + } + } + control.2 { + iface MIXER + name 'PCM Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.3 { + iface MIXER + name 'Headphone Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 30' + dbmin -4500 + dbmax 0 + dbvalue.0 -4500 + dbvalue.1 -4500 + } + } + control.4 { + iface MIXER + name 'Headphone Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.5 { + iface MIXER + name 'Rear Mic Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.6 { + iface MIXER + name 'Rear Mic Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.7 { + iface MIXER + name 'Front Mic Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.8 { + iface MIXER + name 'Front Mic Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.9 { + iface MIXER + name 'Line Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.10 { + iface MIXER + name 'Line Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.11 { + iface MIXER + name 'CD Playback Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -3450 + dbmax 1200 + dbvalue.0 -3450 + dbvalue.1 -3450 + } + } + control.12 { + iface MIXER + name 'CD Playback Switch' + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.13 { + iface MIXER + name 'Auto-Mute Mode' + value Disabled + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 Disabled + item.1 Enabled + } + } + control.14 { + iface MIXER + name 'Rear Mic Boost Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 3' + dbmin 0 + dbmax 3000 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.15 { + iface MIXER + name 'Front Mic Boost Volume' + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 3' + dbmin 0 + dbmax 3000 + dbvalue.0 0 + dbvalue.1 0 + } + } + control.16 { + iface MIXER + name 'Capture Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.17 { + iface MIXER + name 'Capture Switch' + index 1 + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.18 { + iface MIXER + name 'Capture Switch' + index 2 + value.0 false + value.1 false + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.19 { + iface MIXER + name 'Capture Volume' + value.0 25 + value.1 25 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -1200 + dbmax 3450 + dbvalue.0 2550 + dbvalue.1 2550 + } + } + control.20 { + iface MIXER + name 'Capture Volume' + index 1 + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -1200 + dbmax 3450 + dbvalue.0 -1200 + dbvalue.1 -1200 + } + } + control.21 { + iface MIXER + name 'Capture Volume' + index 2 + value.0 0 + value.1 0 + comment { + access 'read write' + type INTEGER + count 2 + range '0 - 31' + dbmin -1200 + dbmax 3450 + dbvalue.0 -1200 + dbvalue.1 -1200 + } + } + control.22 { + iface MIXER + name 'Input Source' + value Line + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Rear Mic' + item.1 'Front Mic' + item.2 Line + item.3 CD + } + } + control.23 { + iface MIXER + name 'Input Source' + index 1 + value 'Rear Mic' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Rear Mic' + item.1 'Front Mic' + item.2 Line + item.3 CD + } + } + control.24 { + iface MIXER + name 'Input Source' + index 2 + value 'Rear Mic' + comment { + access 'read write' + type ENUMERATED + count 1 + item.0 'Rear Mic' + item.1 'Front Mic' + item.2 Line + item.3 CD + } + } + control.25 { + iface MIXER + name 'IEC958 Playback Con Mask' + value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.26 { + iface MIXER + name 'IEC958 Playback Pro Mask' + value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access read + type IEC958 + count 1 + } + } + control.27 { + iface MIXER + name 'IEC958 Playback Default' + value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' + comment { + access 'read write' + type IEC958 + count 1 + } + } + control.28 { + iface MIXER + name 'IEC958 Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.29 { + iface MIXER + name 'IEC958 Default PCM Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } + control.30 { + iface MIXER + name 'Master Playback Volume' + value 24 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 30' + dbmin -4500 + dbmax 0 + dbvalue.0 -900 + } + } + control.31 { + iface MIXER + name 'Master Playback Switch' + value true + comment { + access 'read write' + type BOOLEAN + count 1 + } + } +} diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/formfactor.machconfig b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/formfactor.machconfig new file mode 100644 index 0000000..ffce012 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/formfactor.machconfig @@ -0,0 +1,3 @@ +# Assume a USB mouse and keyboard are connected +HAVE_TOUCHSCREEN=0 +HAVE_KEYBOARD=1 diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/fri2.vars b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/fri2.vars new file mode 100644 index 0000000..f6bf830 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/fri2.vars @@ -0,0 +1,19 @@ +BRIEF_DESCRIPTION="Fish River Island 2 (fri2) platform with open source graphics stack" +FORMFACTOR_FILE="noemgd-formfactor.machconfig" +PULSEAUDIO_DEFAULT_SINK="0" +PULSEAUDIO_DEFAULT_SOURCE="0" +ALSA_CONFIG_FILE="alsa.conf" +ALSA_STATE_FILE="alsa.state" +XORG_CONFIG_FILE="" +NETWORK_INTERFACES_FILE="noemgd-network.interfaces" +AUTOLOAD_KERNEL_MODULES="iwlwifi" +PROHIBIT_KERNEL_MODULES="gma500_gfx" +EXTRA_KERNEL_PARAMETERS="console=ttyPCH1,115200 console=tty0 video=vesafb vga=0x318 snd_hda_intel.enable_msi=0" +# Syslinux does not know about the 64MHz uart clock and it does not detect the +# serial device by number. Use the IO port directly and divide the baud down to +# trick syslinux into configuring a 115200 baud. +SYSLINUX_SERIAL_CONFIG="SERIAL 0xb060 3318" +GRUB_SERIAL_CONFIG="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" +GETTY_SERIAL_CONSOLES="115200;ttyPCH1" +SETUP_SCRIPTS="" +REBOOT_AFTER_SETUP="no" diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/network.interfaces b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/network.interfaces new file mode 100644 index 0000000..f5bb946 --- /dev/null +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2/network.interfaces @@ -0,0 +1,9 @@ +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) + +# The loopback interface +auto lo +iface lo inet loopback + +# Wired or wireless interfaces +auto eth0 +iface eth0 inet dhcp diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend index d3f9785..7526b5a 100644 --- a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend +++ b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend @@ -10,6 +10,16 @@ MACHINE_CONFIG_FILES_intel-corei7-64 = " \ ${SUGARBAY_MACHINE_CONFIG_FILES} \ " +RDEPENDS_${PN}_intel-core2-32_append = " dmidecode" + +MACHINE_CONFIG_FILES_intel-core2-32 = " \ + defaults \ + detect-machine \ + ${EMENLOW_MACHINE_CONFIG_FILES} \ + ${CROWNBAY_MACHINE_CONFIG_FILES} \ + ${FRI2_MACHINE_CONFIG_FILES} \ + " + NUC_MACHINE_CONFIG_FILES = " \ nuc/nuc.vars \ nuc/alsa.conf \ @@ -33,3 +43,27 @@ SUGARBAY_MACHINE_CONFIG_FILES = " \ sugarbay/network.interfaces \ " +EMENLOW_MACHINE_CONFIG_FILES = " \ + emenlow/emenlow.vars \ + emenlow/alsa.conf \ + emenlow/alsa.state \ + emenlow/formfactor.machconfig \ + emenlow/network.interfaces \ + emenlow/xorg.conf \ + " + +CROWNBAY_MACHINE_CONFIG_FILES = " \ + crownbay/crownbay.vars \ + crownbay/alsa.conf \ + crownbay/alsa.state \ + crownbay/formfactor.machconfig \ + crownbay/network.interfaces \ + " + +FRI2_MACHINE_CONFIG_FILES = " \ + fri2/fri2.vars \ + fri2/alsa.conf \ + fri2/alsa.state \ + fri2/formfactor.machconfig \ + fri2/network.interfaces \ + " -- 1.8.1.4 -- _______________________________________________ meta-intel mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-intel
