HARSHAPRIYA N (harshapriya.n@intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15436
-gerrit
commit 341d6349fcee1d7f25629963aedb83b141d5442c Author: Sathyanarayana Nujella sathyanarayana.nujella@intel.com Date: Thu Jun 16 15:05:02 2016 -0700
google/reef: 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: I979275cb2ab1e593ff1e5d360bea83b843e45032 Signed-off-by: Sathyanarayana Nujella sathyanarayana.nujella@intel.com --- src/mainboard/google/reef/acpi/mainboard.asl | 60 ++++++++++++++++++++++++++++ src/mainboard/google/reef/gpio.h | 2 + 2 files changed, 62 insertions(+)
diff --git a/src/mainboard/google/reef/acpi/mainboard.asl b/src/mainboard/google/reef/acpi/mainboard.asl index 5471488..b5bf3e6 100644 --- a/src/mainboard/google/reef/acpi/mainboard.asl +++ b/src/mainboard/google/reef/acpi/mainboard.asl @@ -84,3 +84,63 @@ Scope (_SB.PCI0.LPCB) #include <drivers/pc80/tpm/acpi/tpm.asl> #include "ec.asl" } + +Scope (_SB.PCI0.I2C0) +{ + /* Headphone Codec */ + Device (HPDA) + { + Name (_HID, "DLGS7219") + Name (_DDN, "Dialog DA7219 Codec") + Name (_UID, 1) + Name (_S0W, 4) + Name (_DSD, Package () { + ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "dlg,micbias-lvl", 2600 }, + Package () { "dlg,mic-amp-in-sel", "diff" }, + }, + ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), + Package () { + Package () {"da7219_aad", "DAAD"}, + } + }) + + Name (DAAD, Package () { + ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"), + Package () { + Package () { "dlg,btn-cfg", 50 }, + Package () { "dlg,mic-det-thr", 500 }, + Package () { "dlg,jack-ins-deb", 20 }, + Package () { "dlg,jack-det-rate", "32ms_64ms" }, + Package () { "dlg,jack-rem-deb", 1 }, + Package () { "dlg,a-d-btn-thr", 0xa }, + Package () { "dlg,d-b-btn-thr", 0x16 }, + Package () { "dlg,b-c-btn-thr", 0x21 }, + Package () { "dlg,c-mic-btn-thr", 0x3E }, + Package () { "dlg,btn-avg", 4 }, + Package () { "dlg,adc-1bit-rpt", 1 }, + } + }) + + Name (_CRS, ResourceTemplate() + { + I2cSerialBus ( + BOARD_HP_MIC_CODEC_I2C_ADDR, + ControllerInitiated, + 400000, + AddressingMode7Bit, + "\_SB.PCI0.I2C0", + ) + Interrupt (ResourceConsumer, Level, ActiveLow) + { + GPIO_116_IRQ + } + }) + + Method (_STA) + { + Return (0xF) + } + } +} diff --git a/src/mainboard/google/reef/gpio.h b/src/mainboard/google/reef/gpio.h index bd491b4..2c8a0d0 100644 --- a/src/mainboard/google/reef/gpio.h +++ b/src/mainboard/google/reef/gpio.h @@ -21,6 +21,8 @@ /* Input device interrupt configuration */ #define TOUCHPAD_INT GPIO_18_IRQ
+#define BOARD_HP_MIC_CODEC_I2C_ADDR 0x1a + #ifndef __ACPI__ /* * Pad configuration in ramstage. The order largely follows the 'GPIO Muxing'