blob: f36814c8dfbe04521f1a093025be7752fa431c90 [file] [log] [blame]
common_config: &common_config
name: "{{$device-name}}"
identity:
platform-name: "Sarien"
smbios-name-match: "Drallion"
sku-id: "{{$sku-id}}"
firmware:
no-firmware: True
power: &power_common
low-battery-shutdown-percent: "4.0"
power-supply-full-factor: "1.00"
suspend-to-idle: "1"
has-charge-controller: "1"
disable-dark-resume: "0"
min-visible-backlight-level: "1200"
internal-backlight-no-als-battery-brightness: "52"
set-wifi-transmit-power-for-tablet-mode: "1"
thermal:
dptf-dv: "{{$device-name}}/dptf.dv"
files:
- source: "{{dptf-dv}}"
destination: "/etc/dptf/{{dptf-dv}}"
audio:
main:
# If the generic ucm is not sufficient, the device
# should override the generic source by setting
# $ucm_src_root: "{{$device-name}}"
$cras_root: "/etc/cras"
$ucm_src_root: "common"
$ucm_root: "/usr/share/alsa/ucm"
$card: "HDA\ Intel\ PCH"
cras-config-dir: "{{$device-name}}"
$alsa_module_src_root: "common"
$modprobe_root: "/etc/modprobe.d"
$fw_patch_root: "/lib/firmware"
files:
# ALSA UCM configuration file
- source: "{{$ucm_src_root}}/audio/ucm-config/{{$card}}/{{$card}}.conf"
destination: "{{$ucm_root}}/{{$card}}/{{$card}}.conf"
# ALSA UCM SectionUseCase configuration (defined in UCM conf file)
- source: "{{$ucm_src_root}}/audio/ucm-config/{{$card}}/HiFi.conf"
destination: "{{$ucm_root}}/{{$card}}/HiFi.conf"
# ALSA module conf file
- source: "{{$alsa_module_src_root}}/audio/alsa-module-config/alsa-drallion.conf"
destination: "{{$modprobe_root}}/alsa-drallion.conf"
# ALSA module patch file
- source: "{{$alsa_module_src_root}}/audio/alsa-module-config/drallion_alsa.fw"
destination: "{{$fw_patch_root}}/drallion_alsa.fw"
# Volume Curve configuration file
- source: "{{$device-name}}/audio/cras-config/{{$card}}"
destination: "{{$cras_root}}/{{cras-config-dir}}/{{$card}}"
# EQ/DRC DSP configuration file
- source: "{{$device-name}}/audio/cras-config/dsp.ini"
destination: "{{$cras_root}}/{{cras-config-dir}}/dsp.ini"
hardware-properties:
has-touchscreen: True
convertible_config: &convertible_config
<<: *common_config
power:
<<: *power_common
hardware-properties:
has-touchscreen: True
is-lid-convertible: True
has-lid-accelerometer: True
has-base-accelerometer: True
has-lid-gyroscope: True
has-lid-magnetometer: True
chromeos:
devices:
- $device-name: "drallion"
skus:
- $sku-id: 2
config: *common_config
- $sku-id: 4
config: *common_config
- $device-name: "drallion360"
skus:
- $sku-id: 1
config: *convertible_config
- $sku-id: 3
config: *convertible_config