[coreboot-gerrit] Patch set updated for coreboot: intel/amenia: Add DA7219 support in acpi

HARSHAPRIYA N (harshapriya.n@intel.com) gerrit at coreboot.org
Tue Jul 19 20:57:19 CEST 2016


HARSHAPRIYA N (harshapriya.n at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15625

-gerrit

commit 1aeb86d2b409236aceb18fecbefb1e8960e86c55
Author: Harsha Priya <harshapriya.n at intel.com>
Date:   Mon Jul 11 13:13:20 2016 -0700

    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 at intel.com>
---
 src/mainboard/intel/amenia/Kconfig       |  3 +++
 src/mainboard/intel/amenia/devicetree.cb | 20 +++++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/intel/amenia/Kconfig b/src/mainboard/intel/amenia/Kconfig
index 36fde1b..dd04a6f 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 8f15c83..fed5035 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



More information about the coreboot-gerrit mailing list