From e4a7ae5358b764803f4928a7a2f11a27a8673439 Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Mon, 8 Aug 2022 10:52:06 +0800 Subject: [PATCH] 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 Change-Id: I3b6a331ca42e97f984f3a585726c02452bb067f9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66511 Tested-by: build bot (Jenkins) Reviewed-by: Mac Chiang Reviewed-by: Tim Wawrzynczak --- src/mainboard/google/brya/Kconfig | 1 + .../google/brya/variants/ghost/overridetree.cb | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) 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