mb/google/cyan: Adjust ACPI for Maxim audio

- add HRV and GpioIO for coolstar's windows drivers
- fix interrupt type for TI jack detect switch

TEST=build/boot Win11, Linux on google/cyan; verify audio working
OOTB under Linux, under Windows with coolstar's audio drivers.

Change-Id: I6bf6bb9e9989ca8f42436800666d95dd05799838
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76800
Reviewed-by: CoolStar <coolstarorganization@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Matt DeVillier 2021-12-22 10:13:08 -06:00
parent ce61679c69
commit 1b67362971
1 changed files with 10 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Scope (\_SB.PCI0.I2C2)
Name (_CID, AUDIO_CODEC_CID)
Name (_DDN, AUDIO_CODEC_DDN)
Name (_UID, 1)
Name (_HRV, 0x02)
/* Add DT style bindings with _DSD */
Name (_DSD, Package () {
@ -31,8 +32,16 @@ Scope (\_SB.PCI0.I2C2)
"\\_SB.PCI0.I2C2", /* ResourceSource: I2C bus controller name */
)
/* For Linux driver */
GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault,,
"\\_SB.GPSE") { BOARD_JACK_MAXIM_GPIO_INDEX }
/* For coolstar's Windows driver */
GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionInputOnly,
"\\_SB.GPSE", 0x00, ResourceConsumer, ,)
{
BOARD_JACK_MAXIM_GPIO_INDEX
}
} )
Return (SBUF)
}
@ -74,7 +83,7 @@ Scope (\_SB.PCI0.I2C2)
"\\_SB.PCI0.I2C2", /* ResourceSource: I2C bus controller name */
)
GpioInt (Edge, ActiveHigh, ExclusiveAndWake, PullDefault,,
GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault,,
"\\_SB.GPSW") { BOARD_JACK_TI_GPIO_INDEX }
} )