diff options
author | Eric Lai <eric_lai@quanta.corp-partner.google.com> | 2022-08-08 10:52:06 +0800 |
---|---|---|
committer | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2022-08-17 19:42:29 +0000 |
commit | e4a7ae5358b764803f4928a7a2f11a27a8673439 (patch) | |
tree | e7e6ee18ee36d58fb21d3398a64c96a70fe6339f /src/mainboard/google | |
parent | 201928b9eb60b0f42b9fa66645829b75b98b6e3e (diff) |
mb/google/brya/var/ghost: Add max98396 support
Ghost has two amps and address are 0x3c and 0x3d.
BUG=b:231581723
BRANCH=firmware-brya-14505.B
TEST=max98396 driver can get the DSD property correctly.
Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Change-Id: I3b6a331ca42e97f984f3a585726c02452bb067f9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66511
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Mac Chiang <mac.chiang@intel.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/brya/Kconfig | 1 | ||||
-rw-r--r-- | src/mainboard/google/brya/variants/ghost/overridetree.cb | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index 010b1b8bfe..2c27c71a57 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -65,6 +65,7 @@ config BOARD_GOOGLE_BASEBOARD_GHOST select BOARD_GOOGLE_BASEBOARD_BRYA if BOARD_GOOGLE_GHOST4ADL select BOARD_GOOGLE_BASEBOARD_SKOLAS if !BOARD_GOOGLE_GHOST4ADL select DRIVERS_I2C_CS42L42 + select DRIVERS_I2C_MAX98396 select DRIVERS_INTEL_MIPI_CAMERA select GBB_FLAG_DISABLE_LID_SHUTDOWN if VBOOT select SOC_INTEL_COMMON_BLOCK_IPU diff --git a/src/mainboard/google/brya/variants/ghost/overridetree.cb b/src/mainboard/google/brya/variants/ghost/overridetree.cb index 76822a47f6..211819fa22 100644 --- a/src/mainboard/google/brya/variants/ghost/overridetree.cb +++ b/src/mainboard/google/brya/variants/ghost/overridetree.cb @@ -99,6 +99,23 @@ chip soc/intel/alderlake register "hs_bias_sense_disable" = "true" device i2c 48 on end end + chip drivers/i2c/max98396 + register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A11)" + register "vmon_slot_no" = "0" + register "imon_slot_no" = "1" + register "uid" = "0" + register "desc" = ""Right Speaker Amp"" + register "name" = ""MAXR"" + device i2c 3c on end + end + chip drivers/i2c/max98396 + register "vmon_slot_no" = "2" + register "imon_slot_no" = "3" + register "uid" = "1" + register "desc" = ""Left Speaker Amp"" + register "name" = ""MAXL"" + device i2c 3d on end + end end device ref i2c1 on chip drivers/i2c/tpm |