diff options
author | Wisley Chen <wisley.chen@quantatw.com> | 2020-06-30 21:59:47 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-07-12 19:37:08 +0000 |
commit | a339c3600fd013e3555498e53c4afab40af5f736 (patch) | |
tree | 4d3d0790ed3a820147421579e0fd173da12ea131 /src/mainboard | |
parent | c676ecaecfd417f67fafeb7ebd43a5e9f1f359f6 (diff) | |
download | coreboot-a339c3600fd013e3555498e53c4afab40af5f736.tar.xz |
mb/google/dedede/var/drawcia:Add audio support (ALC5682 codec, MX98360A spk amp)
Select the drivers for ALC5682 codec and MX98360A spk amp
BUG=b:158202026
TEST=FW_NAME=drawcia emerge-dedede coreboot chromeos-bootimage
Change-Id: If271f11f10a85ade6f61ff8c25bfafeb67a69af6
Signed-off-by: Wisley Chen <wisley.chen@quantatw.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42928
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/dedede/Kconfig.name | 2 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/drawcia/overridetree.cb | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name index 893a45771f..071ae5b64b 100644 --- a/src/mainboard/google/dedede/Kconfig.name +++ b/src/mainboard/google/dedede/Kconfig.name @@ -19,12 +19,14 @@ config BOARD_GOOGLE_DRAWCIA bool "Drawcia" select BOARD_GOOGLE_BASEBOARD_DEDEDE select BASEBOARD_DEDEDE_LAPTOP + select DRIVERS_GENERIC_MAX98357A config BOARD_GOOGLE_DRAWCIA_LEGACY bool "Drawcia (Legacy)" select BOARD_GOOGLE_BASEBOARD_DEDEDE select BASEBOARD_DEDEDE_LAPTOP select BOARD_ROMSIZE_KB_32768 + select DRIVERS_GENERIC_MAX98357A config BOARD_GOOGLE_WADDLEDOO bool "Waddledoo" diff --git a/src/mainboard/google/dedede/variants/drawcia/overridetree.cb b/src/mainboard/google/dedede/variants/drawcia/overridetree.cb index 3b675107c7..38690f7d6d 100644 --- a/src/mainboard/google/dedede/variants/drawcia/overridetree.cb +++ b/src/mainboard/google/dedede/variants/drawcia/overridetree.cb @@ -61,5 +61,26 @@ chip soc/intel/jasperlake device i2c 10 on end end end # I2C 2 + device pci 19.0 on + chip drivers/i2c/generic + register "hid" = ""10EC5682"" + register "name" = ""RT58"" + register "desc" = ""Headset Codec"" + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" + # Set the jd_src to RT5668_JD1 for jack detection + register "property_count" = "1" + register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" + register "property_list[0].name" = ""realtek,jd-src"" + register "property_list[0].integer" = "1" + device i2c 1a on end + end + end #I2C 4 + device pci 1f.3 on + chip drivers/generic/max98357a + register "hid" = ""MX98360A"" + register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D17)" + device generic 0 on end + end + end # Intel HDA end end |