From: Nitin A Kamble <[email protected]>

Add machine configuration for the Fish River Island (FRI2) platform in the
intel-core2-32 BSP image.

Signed-off-by: Nitin A Kamble <[email protected]>
---
 .../machinesetuptool/intel-core2-32/fri2-alsa.conf |   1 +
 .../intel-core2-32/fri2-alsa.state                 | 411 +++++++++++++++++++++
 .../intel-core2-32/fri2-formfactor.machconfig      |   3 +
 .../intel-core2-32/fri2-network.interfaces         |   9 +
 .../machinesetuptool/intel-core2-32/fri2.vars      |  17 +
 .../machinesetuptool/machinesetuptool_git.bbappend |  11 +
 6 files changed, 452 insertions(+)
 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-network.interfaces
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2.vars

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..03653cf
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2-alsa.conf
@@ -0,0 +1 @@
+# Global alsa-lib configuration
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-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/intel-core2-32/fri2.vars 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2.vars
new file mode 100644
index 0000000..bc39adb
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/fri2.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="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=""
+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 856b01e..646d655 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"
 
 SUPPORTED_MACHINES_intel-core2-32 = "emenlow crownbay"
 
+SUPPORTED_MACHINES_intel-core2-32 = "emenlow-noemgd crownbay-noemgd 
fri2-noemgd"
+
 MACHINE_CONFIG_FILES_intel-core2-32 = " \
        ${EMENLOW_MACHINE_CONFIG_FILES} \
        ${CROWNBAY_MACHINE_CONFIG_FILES} \
+       ${FRI2_MACHINE_CONFIG_FILES} \
        "
 
 NUC_MACHINE_CONFIG_FILES = " \
@@ -59,3 +62,11 @@ CROWNBAY_MACHINE_CONFIG_FILES = " \
        crownbay-alsa.state \
        crownbay-network.interfaces \
        "
+
+FRI2_MACHINE_CONFIG_FILES = " \
+       fri2.vars \
+       fri2-formfactor.machconfig \
+       fri2-alsa.conf \
+       fri2-alsa.state \
+       fri2-network.interfaces \
+       "
-- 
1.8.1.4

-- 
_______________________________________________
meta-intel mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to