summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/variants/baseboard/include
diff options
context:
space:
mode:
authorKevin Chiu <kevin.chiu.17802@gmail.com>2021-03-19 19:31:29 +0800
committerMartin Roth <martinroth@google.com>2021-04-01 19:21:02 +0000
commitd90f8ac741492e436dc1986396b8aabdba642210 (patch)
treed24dc9d4fae9b65afa68873ad0864e6c82eaac1d /src/mainboard/google/kahlee/variants/baseboard/include
parentebf380b56644858995a7f5410c642479c2d36072 (diff)
google/grunt: Add ALC5682 ACPI I2S machine driver
The is used for AMD Grunt board which uses ALC5682 and MAX98357 codec. kernel driver will need to retrieve MISC FCH memory resource for CLK enabling per different CID/HID. BUG=b:171755306 BRANCH=master TEST=emerge-grunt coreboot Change-Id: I5f29a2d784a9fc749fff61a9c96c0a487b71a2d7 Signed-off-by: Kevin Chiu <Kevin.Chiu@quantatw.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51659 Reviewed-by: Yu-hsuan Hsu <yuhsuan@google.com> Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/kahlee/variants/baseboard/include')
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl
index 837678a37e..bb92243583 100644
--- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl
+++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/acpi/audio.asl
@@ -3,7 +3,7 @@
#include <amdblocks/acpimmio_map.h>
/* Grunt specific I2S machine driver */
-Device (I2S)
+Device (I2S0)
{
Name (_HID, "AMD7219")
Name (_CID, "AMD7219")
@@ -28,3 +28,29 @@ Device (I2S)
Return (RBUF)
}
}
+
+Device (I2S1)
+{
+ Name (_HID, "AMDI5682")
+ Name (_CID, "AMDI5682")
+
+ /* Device-Specific Data */
+ Name (_DSD, Package ()
+ {
+ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package ()
+ {
+ Package () { "bt-pad-enable", 1 },
+ }
+ })
+
+ Method (_CRS, 0x0, Serialized) {
+ Name (RBUF, ResourceTemplate () {
+ // Memory resource is for MISC FCH register set.
+ // It is needed for enabling the clock.
+ Memory32Fixed(ReadWrite, ACPIMMIO_MISC_BASE, 0x100)
+ })
+
+ Return (RBUF)
+ }
+}