diff options
author | Harsha Priya <harshapriya.n@intel.com> | 2016-07-11 13:13:20 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-07-19 21:06:52 +0200 |
commit | 00aa45391ddb22b5ac24151d54615ca1d89eb745 (patch) | |
tree | 692fcb704c332e71f45a125c260abea1da6eeed3 | |
parent | 3a94a3ba5b238067f382d07f92c57373003b79cc (diff) | |
download | coreboot-00aa45391ddb22b5ac24151d54615ca1d89eb745.tar.xz |
intel/amenia: Add DA7219 support in acpi
Add DA7219 support in acpi.
DA7219 has advanced accessory detection functionality.
Also add DA7219's AAD as a ACPI data node.
Change-Id: I979275cb2ab1e593ff1e5d360bea83b843e45021
Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Reviewed-on: https://review.coreboot.org/15625
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
-rw-r--r-- | src/mainboard/intel/amenia/Kconfig | 3 | ||||
-rw-r--r-- | src/mainboard/intel/amenia/devicetree.cb | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/src/mainboard/intel/amenia/Kconfig b/src/mainboard/intel/amenia/Kconfig index 36fde1b6e8..dd04a6f625 100644 --- a/src/mainboard/intel/amenia/Kconfig +++ b/src/mainboard/intel/amenia/Kconfig @@ -53,4 +53,7 @@ config INCLUDE_NHLT_BLOBS config DRIVERS_GENERIC_MAX98357A default y +config DRIVERS_I2C_DA7219 + default y + endif # BOARD_INTEL_AMENIA diff --git a/src/mainboard/intel/amenia/devicetree.cb b/src/mainboard/intel/amenia/devicetree.cb index 8f15c83523..fed5035b0c 100644 --- a/src/mainboard/intel/amenia/devicetree.cb +++ b/src/mainboard/intel/amenia/devicetree.cb @@ -50,7 +50,25 @@ chip soc/intel/apollolake device pci 14.1 off end # - PCIe-B 1 - Onboard M2 Slot(Wifi/BT) device pci 15.0 on end # - XHCI device pci 15.1 off end # - XDCI - device pci 16.0 on end # - I2C 0 + device pci 16.0 on # - I2C 0 + chip drivers/i2c/da7219 + register "irq" = "IRQ_LEVEL_LOW(GPIO_116_IRQ)" + register "btn_cfg" = "50" + register "mic_det_thr" = "500" + register "jack_ins_deb" = "20" + register "jack_det_rate" = ""32ms_64ms"" + register "jack_rem_deb" = "1" + register "a_d_btn_thr" = "0xa" + register "d_b_btn_thr" = "0x16" + register "b_c_btn_thr" = "0x21" + register "c_mic_btn_thr" = "0x3e" + register "btn_avg" = "4" + register "adc_1bit_rpt" = "1" + register "micbias_lvl" = "2600" + register "mic_amp_in_sel" = ""diff"" + device i2c 1a on end + end + end device pci 16.1 on end # - I2C 1 device pci 16.2 on end # - I2C 2 device pci 16.3 on end # - I2C 3 |