summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Huang <patrick.huang@amd.corp-partner.google.com>2021-09-13 16:41:25 +0800
committerFelix Held <felix-coreboot@felixheld.de>2021-09-29 15:40:56 +0000
commit9de5d8dd39164524791980fbbad39898238d865d (patch)
tree2f51f27783739672b399c9b72ed1ca0c51295146
parentc42d875448ea7d6d260b974bff79a6c21562d180 (diff)
mb/google/guybrush/var/nipperkin: Add ALC5682I and MAX98360 support
Add ID "10029836" for machine driver, "RTL5682" for ALC5682I and "MX98357A" for MAX98360. BUG=b:198716348 TEST=Build nipperkin, codec is functional with new machine driver. Signed-off-by: Patrick Huang <patrick.huang@amd.corp-partner.google.com> Change-Id: Iab9d11adb7cd08effa2a9b6a627832bd89cb3cb5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57611 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
-rw-r--r--src/mainboard/google/guybrush/Kconfig1
-rw-r--r--src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb18
2 files changed, 17 insertions, 2 deletions
diff --git a/src/mainboard/google/guybrush/Kconfig b/src/mainboard/google/guybrush/Kconfig
index e5b13f4cf2..c259d25fb5 100644
--- a/src/mainboard/google/guybrush/Kconfig
+++ b/src/mainboard/google/guybrush/Kconfig
@@ -14,6 +14,7 @@ config BOARD_SPECIFIC_OPTIONS
select DRIVERS_ACPI_THERMAL_ZONE
select DRIVERS_AMD_I2S_MACHINE_DEV
select DRIVERS_GENERIC_GPIO_KEYS
+ select DRIVERS_GENERIC_MAX98357A
select DRIVERS_I2C_GENERIC
select DRIVERS_I2C_HID
select DRIVERS_PCIE_RTD3_DEVICE
diff --git a/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb b/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb
index afe5673d65..ecaf0cd2df 100644
--- a/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb
+++ b/src/mainboard/google/guybrush/variants/nipperkin/overridetree.cb
@@ -32,7 +32,14 @@ end
chip soc/amd/cezanne
device domain 0 on
-
+ device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A
+ device ref acp on
+ chip drivers/amd/i2s_machine_dev
+ register "hid" = ""10029836""
+ device generic 0.0 on end
+ end
+ end # Audio
+ end
end # domain
register "slow_ppt_limit_mW" = "25000"
@@ -101,7 +108,7 @@ chip soc/amd/cezanne
device ref i2c_2 on
chip drivers/i2c/generic
- register "hid" = ""10EC5682""
+ register "hid" = ""RTL5682""
register "name" = ""RT58""
register "desc" = ""Realtek RT5682""
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPIO_90)"
@@ -128,4 +135,11 @@ chip soc/amd/cezanne
end
end
+ chip drivers/generic/max98357a
+ register "hid" = ""MX98357A""
+ register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPIO_31)"
+ register "sdmode_delay" = "5"
+ device generic 0.1 on end
+ end
+
end # chip soc/amd/cezanne