summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/amenia
diff options
context:
space:
mode:
authorHarsha Priya <harshapriya.n@intel.com>2016-07-11 13:11:12 -0700
committerMartin Roth <martinroth@google.com>2016-07-14 00:04:48 +0200
commit141ce4111220c317b318bce4cc5e378185a576be (patch)
tree2cbaaa77d935c113f3ef14b0462175f694165371 /src/mainboard/intel/amenia
parentbb6af294705c74ffc5f039a9fe56e44f913dcb14 (diff)
intel/amenia: Add Maxim98357a support
Adds Maxim98357a support for amenia using the generic driver in drivers/generic/max98357 Change-Id: I333d4e810e42309ac76dd90c19f05cf3e3a518f1 Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com> Reviewed-on: https://review.coreboot.org/15624 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/intel/amenia')
-rw-r--r--src/mainboard/intel/amenia/Kconfig3
-rw-r--r--src/mainboard/intel/amenia/devicetree.cb7
2 files changed, 9 insertions, 1 deletions
diff --git a/src/mainboard/intel/amenia/Kconfig b/src/mainboard/intel/amenia/Kconfig
index b3ef17bef4..36fde1b6e8 100644
--- a/src/mainboard/intel/amenia/Kconfig
+++ b/src/mainboard/intel/amenia/Kconfig
@@ -50,4 +50,7 @@ config INCLUDE_NHLT_BLOBS
select NHLT_DA7219
select NHLT_MAX98357
+config DRIVERS_GENERIC_MAX98357A
+ default y
+
endif # BOARD_INTEL_AMENIA
diff --git a/src/mainboard/intel/amenia/devicetree.cb b/src/mainboard/intel/amenia/devicetree.cb
index dc6182c157..3f5873e784 100644
--- a/src/mainboard/intel/amenia/devicetree.cb
+++ b/src/mainboard/intel/amenia/devicetree.cb
@@ -37,7 +37,12 @@ chip soc/intel/apollolake
device pci 0d.1 on end # - PMC
device pci 0d.2 on end # - SPI
device pci 0d.3 on end # - Shared SRAM
- device pci 0e.0 on end # - Audio
+ device pci 0e.0 on # - Audio
+ chip drivers/generic/max98357a
+ register "sdmode_gpio" = "ACPI_GPIO_OUTPUT(GPIO_76)"
+ device generic 0 on end
+ end
+ end
device pci 11.0 on end # - ISH
device pci 12.0 on end # - SATA
device pci 13.0 off end # - PCIe-A 0