From: Nitin A Kamble <nitin.a.kam...@intel.com>

Add machine configuration for the NUC, Sugarbay and Jasperforest platform
 in the intel-corei7-64 BSP image.

Signed-off-by: Nitin A Kamble <nitin.a.kam...@intel.com>
---
 .../machinesetuptool/intel-core2-32/detect-machine |   0
 .../machinesetuptool/intel-corei7-64/defaults      |  10 +
 .../intel-corei7-64/detect-machine                 |  67 ++++
 .../intel-corei7-64/jasperforest/alsa.conf         |  17 +
 .../jasperforest/formfactor.machconfig             |   3 +
 .../intel-corei7-64/jasperforest/jasperforest.vars |  16 +
 .../jasperforest/network.interfaces                |   9 +
 .../machinesetuptool/intel-corei7-64/nuc/alsa.conf |  17 +
 .../intel-corei7-64/nuc/alsa.state                 | 309 ++++++++++++++++++
 .../intel-corei7-64/nuc/formfactor.machconfig      |   3 +
 .../intel-corei7-64/nuc/network.interfaces         |  20 ++
 .../machinesetuptool/intel-corei7-64/nuc/nuc.vars  |  16 +
 .../intel-corei7-64/sugarbay/alsa.conf             |  17 +
 .../intel-corei7-64/sugarbay/alsa.state            | 349 +++++++++++++++++++++
 .../intel-corei7-64/sugarbay/formfactor.machconfig |   3 +
 .../intel-corei7-64/sugarbay/network.interfaces    |  16 +
 .../intel-corei7-64/sugarbay/sugarbay.vars         |  16 +
 .../machinesetuptool/machinesetuptool_git.bbappend |  35 +++
 18 files changed, 923 insertions(+)
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/detect-machine
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/defaults
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/detect-machine
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/alsa.conf
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/formfactor.machconfig
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/jasperforest.vars
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/network.interfaces
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/alsa.conf
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/alsa.state
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/formfactor.machconfig
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/network.interfaces
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/nuc.vars
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/alsa.conf
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/alsa.state
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/formfactor.machconfig
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/network.interfaces
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/sugarbay.vars
 create mode 100644 
common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend

diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/detect-machine
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-core2-32/detect-machine
new file mode 100644
index 0000000..e69de29
diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/defaults 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/defaults
new file mode 100644
index 0000000..569e6af
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/defaults
@@ -0,0 +1,10 @@
+
+SUPPORTED_MACHINES="nuc sugarbay jasperforest"
+
+# 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-corei7-64/detect-machine
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/detect-machine
new file mode 100644
index 0000000..4537fe2
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/detect-machine
@@ -0,0 +1,67 @@
+#!/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 ( [ "${system_product_name}" = "VALLEYVIEW B3 PLATFORM" ] \
+               && [ "${processor_version}" = "Intel(R) Atom(TM) CPU  E3825  @ 
1.33GHz" ] )
+       then
+               if expr "x${bios_version}" : 'xMNW2CRB1\.X64\..*' >/dev/null; 
then
+                       MACHINE="minnowboard-max"
+                       echo Detected Machine: "$MACHINE"
+               fi
+       elif ( [ "${baseboard_manufacturer}" = "Intel Corporation" ] \
+               && ( [ "${baseboard_product_name}" = "D54250WYKH" ] \
+               || [ "${baseboard_product_name}" = "D54250WYK" ] \
+               || [ "${baseboard_product_name}" = "D34010WYK" ] \
+               || [ "${baseboard_product_name}" = "D33217GKE" ] \
+               || [ "${baseboard_product_name}" = "DN2820FYKH" ] \
+               || [ "${baseboard_product_name}" = "DC53427HYE" ] \
+               || [ "${baseboard_product_name}" = "D53427RKE" ] \
+               || [ "${baseboard_product_name}" = "DCCP847DYE" ] \
+               || [ "${baseboard_product_name}" = "DC3217IYE" ] ) )
+       then
+               MACHINE="nuc"
+               echo Detected Machine: "$MACHINE"
+
+       elif ( [ "${system_product_name}" = "Spring Peak" ] \
+               && [ "${processor_version}" = "Intel(R) Core(TM) i7-2820QM CPU 
@ 2.30GHz      " ] )
+       then
+               MACHINE="sugarbay"
+               echo Detected Machine: "$MACHINE"
+
+       elif ( [ "${system_manufacturer}" = "Intel" ] \
+               && [ "${system_product_name}" = "Palomar" ] )
+       then
+               if expr "x${processor_version}" : 'xIntel(R) Xeon(R) CPU        
   C5528  @ 2.13GH .*' >/dev/null; then
+                       MACHINE="jasperforest"
+                       echo Detected Machine: "$MACHINE"
+               fi
+       else
+               echo Could not detect the target machine.
+       fi
+
+}
+
+case `uname -m` in
+       x86_64 )
+               detect_intel_platform
+       ;;
+esac
+
diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/alsa.conf
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/alsa.conf
new file mode 100644
index 0000000..dd2b7ff
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/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-corei7-64/jasperforest/formfactor.machconfig
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/formfactor.machconfig
new file mode 100644
index 0000000..ffce012
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/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-corei7-64/jasperforest/jasperforest.vars
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/jasperforest.vars
new file mode 100644
index 0000000..e760402
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/jasperforest.vars
@@ -0,0 +1,16 @@
+BRIEF_DESCRIPTION="Intel Jasperforest server platform"
+FORMFACTOR_FILE="formfactor.machconfig"
+PULSEAUDIO_DEFAULT_SINK="0"
+PULSEAUDIO_DEFAULT_SOURCE="0"
+ALSA_CONFIG_FILE="alsa.conf"
+ALSA_STATE_FILE=""
+XORG_CONFIG_FILE=""
+NETWORK_INTERFACES_FILE="network.interfaces"
+AUTOLOAD_KERNEL_MODULES=""
+PROHIBIT_KERNEL_MODULES=""
+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-corei7-64/jasperforest/network.interfaces
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/network.interfaces
new file mode 100644
index 0000000..f5bb946
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/jasperforest/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-corei7-64/nuc/alsa.conf
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/alsa.conf
new file mode 100644
index 0000000..dd2b7ff
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/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-corei7-64/nuc/alsa.state
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/alsa.state
new file mode 100644
index 0000000..0c2479b
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/alsa.state
@@ -0,0 +1,309 @@
+state.HDMI {
+       control.1 {
+               iface CARD
+               name 'HDMI/DP,pcm=3 Jack'
+               value true
+               comment {
+                       access read
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.2 {
+               iface MIXER
+               name 'IEC958 Playback Con Mask'
+               value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access read
+                       type IEC958
+                       count 1
+               }
+       }
+       control.3 {
+               iface MIXER
+               name 'IEC958 Playback Pro Mask'
+               value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access read
+                       type IEC958
+                       count 1
+               }
+       }
+       control.4 {
+               iface MIXER
+               name 'IEC958 Playback Default'
+               value 
'0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access 'read write'
+                       type IEC958
+                       count 1
+               }
+       }
+       control.5 {
+               iface MIXER
+               name 'IEC958 Playback Switch'
+               value true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.6 {
+               iface PCM
+               device 3
+               name ELD
+               value 
'1000070065100001000000000000000004699424564532343809070700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access 'read volatile'
+                       type BYTES
+                       count 83
+               }
+       }
+       control.7 {
+               iface CARD
+               name 'HDMI/DP,pcm=7 Jack'
+               value false
+               comment {
+                       access read
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.8 {
+               iface MIXER
+               name 'IEC958 Playback Con Mask'
+               index 1
+               value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access read
+                       type IEC958
+                       count 1
+               }
+       }
+       control.9 {
+               iface MIXER
+               name 'IEC958 Playback Pro Mask'
+               index 1
+               value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access read
+                       type IEC958
+                       count 1
+               }
+       }
+       control.10 {
+               iface MIXER
+               name 'IEC958 Playback Default'
+               index 1
+               value 
'0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access 'read write'
+                       type IEC958
+                       count 1
+               }
+       }
+       control.11 {
+               iface MIXER
+               name 'IEC958 Playback Switch'
+               index 1
+               value true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.12 {
+               iface PCM
+               device 7
+               name ELD
+               value ''
+               comment {
+                       access 'read volatile'
+                       type BYTES
+                       count 0
+               }
+       }
+       control.13 {
+               iface PCM
+               device 3
+               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 write'
+                       type INTEGER
+                       count 8
+                       range '0 - 36'
+               }
+       }
+       control.14 {
+               iface PCM
+               device 7
+               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 write'
+                       type INTEGER
+                       count 8
+                       range '0 - 36'
+               }
+       }
+}
+state.PCH {
+       control.1 {
+               iface MIXER
+               name 'Master Playback Volume'
+               value.0 60
+               value.1 60
+               comment {
+                       access 'read write'
+                       type INTEGER
+                       count 2
+                       range '0 - 87'
+                       dbmin -6525
+                       dbmax 0
+                       dbvalue.0 -2025
+                       dbvalue.1 -2025
+               }
+       }
+       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 39
+               value.1 39
+               comment {
+                       access 'read write'
+                       type INTEGER
+                       count 2
+                       range '0 - 63'
+                       dbmin -1725
+                       dbmax 3000
+                       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 3600
+                       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 'Headphone Jack'
+               value false
+               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-corei7-64/nuc/formfactor.machconfig
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/formfactor.machconfig
new file mode 100644
index 0000000..ffce012
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/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-corei7-64/nuc/network.interfaces
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/network.interfaces
new file mode 100644
index 0000000..4ed0a85
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/network.interfaces
@@ -0,0 +1,20 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wireless interfaces
+iface wlan0 inet dhcp
+       wireless_mode managed
+       wireless_essid any
+       wpa-driver wext
+       wpa-conf /etc/wpa_supplicant.conf
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/nuc.vars
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/nuc.vars
new file mode 100644
index 0000000..bb478af
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/nuc/nuc.vars
@@ -0,0 +1,16 @@
+BRIEF_DESCRIPTION="Intel Next Unit of Computing (NUC) platform"
+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="uio iwlwifi"
+PROHIBIT_KERNEL_MODULES=""
+EXTRA_KERNEL_PARAMETERS=""
+SYSLINUX_SERIAL_CONFIG=""
+GRUB_SERIAL_CONFIG=""
+GETTY_SERIAL_CONSOLES=""
+SETUP_SCRIPTS=""
+REBOOT_AFTER_SETUP="no"
diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/alsa.conf
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/alsa.conf
new file mode 100644
index 0000000..dd2b7ff
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/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-corei7-64/sugarbay/alsa.state
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/alsa.state
new file mode 100644
index 0000000..ee31853
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/alsa.state
@@ -0,0 +1,349 @@
+state.PCH {
+       control.1 {
+               iface MIXER
+               name 'Headphone Playback Volume'
+               value.0 87
+               value.1 87
+               comment {
+                       access 'read write'
+                       type INTEGER
+                       count 2
+                       range '0 - 87'
+                       dbmin -6525
+                       dbmax 0
+                       dbvalue.0 0
+                       dbvalue.1 0
+               }
+       }
+       control.2 {
+               iface MIXER
+               name 'Headphone Playback Switch'
+               value.0 true
+               value.1 true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 2
+               }
+       }
+       control.3 {
+               iface MIXER
+               name 'Speaker Playback Volume'
+               value.0 87
+               value.1 87
+               comment {
+                       access 'read write'
+                       type INTEGER
+                       count 2
+                       range '0 - 87'
+                       dbmin -6525
+                       dbmax 0
+                       dbvalue.0 0
+                       dbvalue.1 0
+               }
+       }
+       control.4 {
+               iface MIXER
+               name 'Speaker Playback Switch'
+               value.0 true
+               value.1 true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 2
+               }
+       }
+       control.5 {
+               iface MIXER
+               name 'Internal 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 'Internal Mic Playback Switch'
+               value.0 false
+               value.1 false
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 2
+               }
+       }
+       control.7 {
+               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.8 {
+               iface MIXER
+               name 'Mic Playback Switch'
+               value.0 false
+               value.1 false
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 2
+               }
+       }
+       control.9 {
+               iface MIXER
+               name 'Auto-Mute Mode'
+               value Enabled
+               comment {
+                       access 'read write'
+                       type ENUMERATED
+                       count 1
+                       item.0 Disabled
+                       item.1 Enabled
+               }
+       }
+       control.10 {
+               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.11 {
+               iface MIXER
+               name 'Capture Switch'
+               value.0 true
+               value.1 true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 2
+               }
+       }
+       control.12 {
+               iface MIXER
+               name 'Internal Mic Boost Volume'
+               value.0 0
+               value.1 0
+               comment {
+                       access 'read write'
+                       type INTEGER
+                       count 2
+                       range '0 - 3'
+                       dbmin 0
+                       dbmax 3600
+                       dbvalue.0 0
+                       dbvalue.1 0
+               }
+       }
+       control.13 {
+               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 3600
+                       dbvalue.0 0
+                       dbvalue.1 0
+               }
+       }
+       control.14 {
+               iface MIXER
+               name 'Master Playback Volume'
+               value 60
+               comment {
+                       access 'read write'
+                       type INTEGER
+                       count 1
+                       range '0 - 87'
+                       dbmin -6525
+                       dbmax 0
+                       dbvalue.0 -2025
+               }
+       }
+       control.15 {
+               iface MIXER
+               name 'Master Playback Switch'
+               value true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.16 {
+               iface CARD
+               name 'Internal Mic Phantom Jack'
+               value true
+               comment {
+                       access read
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.17 {
+               iface CARD
+               name 'Mic Jack'
+               value false
+               comment {
+                       access read
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.18 {
+               iface CARD
+               name 'Headphone Jack'
+               value false
+               comment {
+                       access read
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.19 {
+               iface CARD
+               name 'Speaker Phantom Jack'
+               value true
+               comment {
+                       access read
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.20 {
+               iface PCM
+               name 'Playback Channel Map'
+               value.0 0
+               value.1 0
+               comment {
+                       access read
+                       type INTEGER
+                       count 2
+                       range '0 - 36'
+               }
+       }
+       control.21 {
+               iface PCM
+               name 'Capture Channel Map'
+               value.0 0
+               value.1 0
+               comment {
+                       access read
+                       type INTEGER
+                       count 2
+                       range '0 - 36'
+               }
+       }
+       control.22 {
+               iface CARD
+               name 'HDMI/DP,pcm=3 Jack'
+               value false
+               comment {
+                       access read
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.23 {
+               iface MIXER
+               name 'IEC958 Playback Con Mask'
+               value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access read
+                       type IEC958
+                       count 1
+               }
+       }
+       control.24 {
+               iface MIXER
+               name 'IEC958 Playback Pro Mask'
+               value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access read
+                       type IEC958
+                       count 1
+               }
+       }
+       control.25 {
+               iface MIXER
+               name 'IEC958 Playback Default'
+               value 
'0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
+               comment {
+                       access 'read write'
+                       type IEC958
+                       count 1
+               }
+       }
+       control.26 {
+               iface MIXER
+               name 'IEC958 Playback Switch'
+               value true
+               comment {
+                       access 'read write'
+                       type BOOLEAN
+                       count 1
+               }
+       }
+       control.27 {
+               iface PCM
+               device 3
+               name ELD
+               value ''
+               comment {
+                       access 'read volatile'
+                       type BYTES
+                       count 0
+               }
+       }
+       control.28 {
+               iface PCM
+               device 3
+               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 write'
+                       type INTEGER
+                       count 8
+                       range '0 - 36'
+               }
+       }
+}
diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/formfactor.machconfig
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/formfactor.machconfig
new file mode 100644
index 0000000..ffce012
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/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-corei7-64/sugarbay/network.interfaces
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/network.interfaces
new file mode 100644
index 0000000..501466b
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/network.interfaces
@@ -0,0 +1,16 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wireless interfaces
+iface wlan0 inet dhcp
+       wireless_mode managed
+       wireless_essid any
+       wpa-driver wext
+       wpa-conf /etc/wpa_supplicant.conf
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/sugarbay.vars
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/sugarbay.vars
new file mode 100644
index 0000000..d372a8e
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay/sugarbay.vars
@@ -0,0 +1,16 @@
+BRIEF_DESCRIPTION="Intel Huronriver platform with sugarbay board"
+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="iwlwifi"
+PROHIBIT_KERNEL_MODULES=""
+EXTRA_KERNEL_PARAMETERS=""
+SYSLINUX_SERIAL_CONFIG=""
+GRUB_SERIAL_CONFIG=""
+GETTY_SERIAL_CONSOLES=""
+SETUP_SCRIPTS=""
+REBOOT_AFTER_SETUP="no"
diff --git a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend 
b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
new file mode 100644
index 0000000..d3f9785
--- /dev/null
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
@@ -0,0 +1,35 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+RDEPENDS_${PN}_intel-corei7-64_append = " dmidecode"
+
+MACHINE_CONFIG_FILES_intel-corei7-64 = " \
+       defaults \
+       detect-machine \
+       ${NUC_MACHINE_CONFIG_FILES} \
+       ${JASPERFOREST_MACHINE_CONFIG_FILES} \
+       ${SUGARBAY_MACHINE_CONFIG_FILES} \
+       "
+
+NUC_MACHINE_CONFIG_FILES = " \
+       nuc/nuc.vars \
+       nuc/alsa.conf \
+       nuc/alsa.state \
+       nuc/formfactor.machconfig \
+       nuc/network.interfaces \
+       "
+
+JASPERFOREST_MACHINE_CONFIG_FILES = " \
+       jasperforest/jasperforest.vars \
+       jasperforest/alsa.conf \
+       jasperforest/formfactor.machconfig \
+       jasperforest/network.interfaces \
+       "
+
+SUGARBAY_MACHINE_CONFIG_FILES = " \
+       sugarbay/sugarbay.vars \
+       sugarbay/alsa.conf \
+       sugarbay/alsa.state \
+       sugarbay/formfactor.machconfig \
+       sugarbay/network.interfaces \
+       "
+
-- 
1.8.1.4

-- 
_______________________________________________
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel

Reply via email to