diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2021-12-22 10:13:08 -0600 |
---|---|---|
committer | Matt DeVillier <matt.devillier@gmail.com> | 2023-08-05 16:00:50 +0000 |
commit | 1b67362971c3e09cb4771043424fe205ceb3b52b (patch) | |
tree | 6502584872e6b1723b9deeca92efc03a6b667aee /src | |
parent | ce61679c69605371104b228b36cbee6c1a4f1fc0 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/cyan/acpi/codec_maxim.asl | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mainboard/google/cyan/acpi/codec_maxim.asl b/src/mainboard/google/cyan/acpi/codec_maxim.asl index dd68904f9b..f526fc12da 100644 --- a/src/mainboard/google/cyan/acpi/codec_maxim.asl +++ b/src/mainboard/google/cyan/acpi/codec_maxim.asl @@ -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 } } ) |