summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/kunimitsu/acpi
diff options
context:
space:
mode:
authorRohit Ainapure <rohit.m.ainapure@intel.com>2015-09-18 13:40:51 -0700
committerPatrick Georgi <pgeorgi@google.com>2016-01-15 11:54:55 +0100
commit02c1f8621377126c8c9d0514a38f0e4920dd9bd3 (patch)
treee3ffc1445efda188a9933fca6f2c8ff384cf1f1a /src/mainboard/intel/kunimitsu/acpi
parent3a749710cfa7e12fe33a05a951df022fd55c4a7f (diff)
intel/kunimitsu: Add support for MAX98357A audio amplifier
Adding support for Maxim 98357A audio amplifier. BUG=chrome-os-partner:44481 BRANCH=None TEST=Build & boot on Skylake kunimitsu Fab4 with MAXIM codec. Verify audio playback works using MAXIM. Change-Id: I4f020ccae540b02d5d533704a52cebb7805715fe Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: c0a81300e02e917500fa3c0241c95dd795abaf04 Original-Change-Id: I8875c9a55f09b1ec353203cfcb2186dc5fd66542 Original-Signed-off-by: Rohit Ainapure <rohit.m.ainapure@intel.com> Original-Signed-off-by: Subrata Banik <subrata.banik@intel.com> Original-Reviewed-on: https://chromium-review.googlesource.com/309894 Original-Tested-by: Rohit M Ainapure <rohit.m.ainapure@intel.com> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/12949 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/intel/kunimitsu/acpi')
-rw-r--r--src/mainboard/intel/kunimitsu/acpi/mainboard.asl39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl
index 73d43bc276..2eaee84d55 100644
--- a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl
+++ b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl
@@ -44,6 +44,45 @@ Scope (\_SB)
{
Name (_HID, EisaId ("PNP0C0C"))
}
+
+ Device (MAXM)
+ {
+ Name (_HID, "MX98357A")
+ Name (_DDN, "Maxim Integrated 98357A Amplifier")
+ Name (_UID, 1)
+ Name (_CRS, ResourceTemplate()
+ {
+ GpioIo (Exclusive, PullDefault, 0x0000, 0x0000,
+ IoRestrictionOutputOnly,
+ "\\_SB.PCI0.GPIO", 0x00, ResourceConsumer,,)
+ {
+ AUDIO_DB_ID
+ }
+ })
+ Name (_DSD, Package ()
+ {
+ ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
+ Package () {
+ Package () {
+ /*
+ * Create a named GPIO
+ * "sdmode-gpio" for the
+ * kernel codec driver
+ * to use.
+ */
+
+ "sdmode-gpio", Package () {
+ ^MAXM, 0, 0, 0
+ }
+ },
+ }
+ })
+
+ Method (_STA)
+ {
+ Return (0xF)
+ }
+ }
}
/*