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

Add machine configuration for the Sugarbay platform in the intel-corei7-64 BSP 
image.

Signed-off-by: Nitin A Kamble <nitin.a.kam...@intel.com>
---
 .../intel-corei7-64/sugarbay-alsa.conf             |   1 +
 .../intel-corei7-64/sugarbay-alsa.state            | 349 +++++++++++++++++++++
 .../intel-corei7-64/sugarbay-formfactor.machconfig |   3 +
 .../intel-corei7-64/sugarbay-network.interfaces    |  31 ++
 .../machinesetuptool/intel-corei7-64/sugarbay.vars |  14 +
 .../machinesetuptool/machinesetuptool_git.bbappend |  12 +-
 6 files changed, 409 insertions(+), 1 deletion(-)
 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.vars

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..03653cf
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay-alsa.conf
@@ -0,0 +1 @@
+# Global alsa-lib configuration
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..0acf4cf
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay-network.interfaces
@@ -0,0 +1,31 @@
+# /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
+
+iface atml0 inet dhcp
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
+iface eth1 inet dhcp
+
+# Ethernet/RNDIS gadget (g_ether)
+# ... or on host side, usbnet and random hwaddr
+iface usb0 inet static
+       address 192.168.7.2
+       netmask 255.255.255.0
+       network 192.168.7.0
+       gateway 192.168.7.1
+
+# Bluetooth networking
+iface bnep0 inet dhcp
+
diff --git 
a/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay.vars
 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay.vars
new file mode 100644
index 0000000..da54b04
--- /dev/null
+++ 
b/common/recipes-bsp/machinesetuptool/machinesetuptool/intel-corei7-64/sugarbay.vars
@@ -0,0 +1,14 @@
+FORMFACTOR_FILE="sugarbay-formfactor.machconfig"
+ALSA_CONFIG_FILE="sugarbay-alsa.conf"
+ALSA_STATE_FILE="sugarbay-alsa.state"
+XORG_CONFIG_FILE=""
+NETWORK_INTERFACES_FILE="sugarbay-network.interfaces"
+AUTOLOAD_KERNEL_MODULES="iwlwifi"
+PROHIBIT_KERNEL_MODULES=""
+EXTRA_KERNEL_PARAMETERS=""
+SYSLINUX_SERIAL_CONFIG=""
+GRUB_SERIAL_CONFIG=""
+GETTY_SERIAL_CONSOLES=""
+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 2fc7ee9..7cd70cd 100644
--- a/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
+++ b/common/recipes-bsp/machinesetuptool/machinesetuptool_git.bbappend
@@ -2,11 +2,12 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 DEFAULT_MACHINE_SELECTION_intel-corei7-64 = "nuc"
 
-SUPPORTED_MACHINES_intel-corei7-64 = "nuc jasperforest"
+SUPPORTED_MACHINES_intel-corei7-64 = "nuc jasperforest sugarbay"
 
 MACHINE_CONFIG_FILES_intel-corei7-64 = " \
        ${NUC_MACHINE_CONFIG_FILES} \
        ${JASPERFOREST_MACHINE_CONFIG_FILES} \
+       ${SUGARBAY_MACHINE_CONFIG_FILES} \
        "
 
 NUC_MACHINE_CONFIG_FILES = " \
@@ -24,3 +25,12 @@ JASPERFOREST_MACHINE_CONFIG_FILES = " \
        jasperforest-alsa.conf \
        jasperforest-network.interfaces \
        "
+
+SUGARBAY_MACHINE_CONFIG_FILES = " \
+       sugarbay.vars \
+       sugarbay-formfactor.machconfig \
+       sugarbay-alsa.conf \
+       sugarbay-alsa.state \
+       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