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>
This commit is contained in:
Eric Lai 2022-08-08 10:52:06 +08:00 committed by Tim Wawrzynczak
parent 201928b9eb
commit e4a7ae5358
2 changed files with 18 additions and 0 deletions

View File

@ -65,6 +65,7 @@ config BOARD_GOOGLE_BASEBOARD_GHOST
select BOARD_GOOGLE_BASEBOARD_BRYA if BOARD_GOOGLE_GHOST4ADL select BOARD_GOOGLE_BASEBOARD_BRYA if BOARD_GOOGLE_GHOST4ADL
select BOARD_GOOGLE_BASEBOARD_SKOLAS if !BOARD_GOOGLE_GHOST4ADL select BOARD_GOOGLE_BASEBOARD_SKOLAS if !BOARD_GOOGLE_GHOST4ADL
select DRIVERS_I2C_CS42L42 select DRIVERS_I2C_CS42L42
select DRIVERS_I2C_MAX98396
select DRIVERS_INTEL_MIPI_CAMERA select DRIVERS_INTEL_MIPI_CAMERA
select GBB_FLAG_DISABLE_LID_SHUTDOWN if VBOOT select GBB_FLAG_DISABLE_LID_SHUTDOWN if VBOOT
select SOC_INTEL_COMMON_BLOCK_IPU select SOC_INTEL_COMMON_BLOCK_IPU

View File

@ -99,6 +99,23 @@ chip soc/intel/alderlake
register "hs_bias_sense_disable" = "true" register "hs_bias_sense_disable" = "true"
device i2c 48 on end device i2c 48 on end
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 end
device ref i2c1 on device ref i2c1 on
chip drivers/i2c/tpm chip drivers/i2c/tpm