summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2021-12-22 10:13:08 -0600
committerMatt DeVillier <matt.devillier@gmail.com>2023-08-05 16:00:50 +0000
commit1b67362971c3e09cb4771043424fe205ceb3b52b (patch)
tree6502584872e6b1723b9deeca92efc03a6b667aee /src/mainboard/google
parentce61679c69605371104b228b36cbee6c1a4f1fc0 (diff)
downloadcoreboot-1b67362971c3e09cb4771043424fe205ceb3b52b.tar.gz
coreboot-1b67362971c3e09cb4771043424fe205ceb3b52b.tar.bz2
coreboot-1b67362971c3e09cb4771043424fe205ceb3b52b.zip
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/mainboard/google')
-rw-r--r--src/mainboard/google/cyan/acpi/codec_maxim.asl11
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 dd68904f9be6..f526fc12da65 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 }
} )