[meta-intel] [PATCH 27/31] machinesetuptool: add fri2 machine config to the intel-core2-32 BSP
nitin.a.kamble at intel.com
nitin.a.kamble at intel.com
Thu Sep 18 17:35:47 PDT 2014
From: Nitin A Kamble <nitin.a.kamble at intel.com>
Add machine configuration for the Fish River Island (FRI2) platform in the
intel-core2-32 BSP image.
Signed-off-by: Nitin A Kamble <nitin.a.kamble at intel.com>
---
.../intel-core2-32/fri2-noemgd-alsa.conf | 1 +
.../intel-core2-32/fri2-noemgd-alsa.state | 411 +++++++++++++++++++++
.../fri2-noemgd-formfactor.machconfig | 3 +
.../intel-core2-32/fri2-noemgd-network.interfaces | 9 +
.../intel-core2-32/fri2-noemgd.vars | 17 +
.../machinesetuptool/machinesetuptool_git.bbappend | 11 +
6 files changed, 452 insertions(+)
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-alsa.conf
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-alsa.state
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-formfactor.machconfig
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-network.interfaces
create mode 100644 common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd.vars
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-alsa.conf b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-alsa.conf
new file mode 100644
index 0000000..03653cf
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-alsa.conf
@@ -0,0 +1 @@
+# Global alsa-lib configuration
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-alsa.state b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-alsa.state
new file mode 100644
index 0000000..8a89f0b
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-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-noemgd-formfactor.machconfig b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-formfactor.machconfig
new file mode 100644
index 0000000..ffce012
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-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-noemgd-network.interfaces b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-network.interfaces
new file mode 100644
index 0000000..f5bb946
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd-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/fri2-noemgd.vars b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd.vars
new file mode 100644
index 0000000..9cba468
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-noemgd.vars
@@ -0,0 +1,17 @@
+FORMFACTOR_FILE="fri2-noemgd-formfactor.machconfig"
+ALSA_CONFIG_FILE="fri2-noemgd-alsa.conf"
+ALSA_STATE_FILE="fri2-noemgd-alsa.state"
+XORG_CONFIG_FILE=""
+NETWORK_INTERFACES_FILE="fri2-noemgd-network.interfaces"
+AUTOLOAD_KERNEL_MODULES="iwlwifi"
+PROHIBIT_KERNEL_MODULES=""
+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=""
+BOOT_SCRIPTS=""
+REBOOT_AFTER_SETUP="no"
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
index 256d9a5..f730d4e 100644
--- a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
@@ -14,9 +14,12 @@ DEFAULT_MACHINE_SELECTION_intel-core2-32 = "emenlow-noemgd"
SUPPORTED_MACHINES_intel-core2-32 = "emenlow-noemg crownbay-noemgdd"
+SUPPORTED_MACHINES_intel-core2-32 = "emenlow-noemgd crownbay-noemgd fri2-noemgd"
+
MACHINE_CONFIG_FILES_intel-core2-32 = " \
${EMENLOW-NOEMGD_MACHINE_CONFIG_FILES} \
${CROWNBAY-NOEMGD_MACHINE_CONFIG_FILES} \
+ ${FRI2-NOEMGD_MACHINE_CONFIG_FILES} \
"
NUC_MACHINE_CONFIG_FILES = " \
@@ -59,3 +62,11 @@ CROWNBAY-NOEMGD_MACHINE_CONFIG_FILES = " \
crownbay-noemgd-alsa.state \
crownbay-noemgd-network.interfaces \
"
+
+FRI2-NOEMGD_MACHINE_CONFIG_FILES = " \
+ fri2-noemgd.vars \
+ fri2-noemgd-formfactor.machconfig \
+ fri2-noemgd-alsa.conf \
+ fri2-noemgd-alsa.state \
+ fri2-noemgd-network.interfaces \
+ "
--
1.8.1.4
More information about the meta-intel
mailing list