From 9413f4ef1b93090a79a9c20c306583473d9545a4 Mon Sep 17 00:00:00 2001 From: Wisley Chen Date: Tue, 24 Aug 2021 16:51:44 +0600 Subject: mb/google/brya/variant/redrix: Correct MAX98390 AMP setting 4 MAX98390 Speaker Amps are connected to i2c0 and device addresses are 0x38/0x39/0x3a/0x3b BUG=b:191931762 TEST=FW_NAME=redrix emerge-brya coreboot chromeos-bootimage Signed-off-by: Wisley Chen Change-Id: Ie8f01e6a7e09e18f6d34f3ceb1db8e2e238197bf Reviewed-on: https://review.coreboot.org/c/coreboot/+/57114 Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) --- .../google/brya/variants/redrix/overridetree.cb | 66 +++++++++++----------- 1 file changed, 32 insertions(+), 34 deletions(-) (limited to 'src/mainboard/google/brya/variants/redrix') diff --git a/src/mainboard/google/brya/variants/redrix/overridetree.cb b/src/mainboard/google/brya/variants/redrix/overridetree.cb index bfb3bf3712..8f845d1c25 100644 --- a/src/mainboard/google/brya/variants/redrix/overridetree.cb +++ b/src/mainboard/google/brya/variants/redrix/overridetree.cb @@ -179,6 +179,38 @@ chip soc/intel/alderlake device i2c 1a on end end + chip drivers/i2c/max98390 + register "desc" = ""MAX98390 Speaker Amp 0"" + register "uid" = "0" + register "name" = ""MXW0"" + register "r0_calib_key" = ""dsm_calib_r0_0"" + register "temperature_calib_key" = ""dsm_calib_temp_0"" + device i2c 0x38 on end + end + chip drivers/i2c/max98390 + register "desc" = ""MAX98390 Speaker Amp 1"" + register "uid" = "1" + register "name" = ""MXW1"" + register "r0_calib_key" = ""dsm_calib_r0_1"" + register "temperature_calib_key" = ""dsm_calib_temp_1"" + device i2c 0x39 on end + end + chip drivers/i2c/max98390 + register "desc" = ""MAX98390 Speaker Amp 2"" + register "uid" = "2" + register "name" = ""MXW2"" + register "r0_calib_key" = ""dsm_calib_r0_2"" + register "temperature_calib_key" = ""dsm_calib_temp_2"" + device i2c 0x3a on end + end + chip drivers/i2c/max98390 + register "desc" = ""MAX98390 Speaker Amp 3"" + register "uid" = "3" + register "name" = ""MXW3"" + register "r0_calib_key" = ""dsm_calib_r0_3"" + register "temperature_calib_key" = ""dsm_calib_temp_3"" + device i2c 0x3b on end + end end #I2C0 device ref i2c1 on chip drivers/i2c/hid @@ -269,40 +301,6 @@ chip soc/intel/alderlake device i2c 15 on end end end - device ref hda on - chip drivers/i2c/max98390 - register "desc" = ""MAX98390 Speaker Amp 0"" - register "uid" = "0" - register "name" = ""MXW0"" - register "r0_calib_key" = ""dsm_calib_r0_0"" - register "temperature_calib_key" = ""dsm_calib_temp_0"" - device i2c 0x70 on end - end - chip drivers/i2c/max98390 - register "desc" = ""MAX98390 Speaker Amp 1"" - register "uid" = "1" - register "name" = ""MXW1"" - register "r0_calib_key" = ""dsm_calib_r0_1"" - register "temperature_calib_key" = ""dsm_calib_temp_1"" - device i2c 0x72 on end - end - chip drivers/i2c/max98390 - register "desc" = ""MAX98390 Speaker Amp 2"" - register "uid" = "2" - register "name" = ""MXW2"" - register "r0_calib_key" = ""dsm_calib_r0_2"" - register "temperature_calib_key" = ""dsm_calib_temp_2"" - device i2c 0x74 on end - end - chip drivers/i2c/max98390 - register "desc" = ""MAX98390 Speaker Amp 3"" - register "uid" = "3" - register "name" = ""MXW3"" - register "r0_calib_key" = ""dsm_calib_r0_3"" - register "temperature_calib_key" = ""dsm_calib_temp_3"" - device i2c 0x76 on end - end - end device ref gspi1 on chip drivers/spi/acpi register "name" = ""CRFP"" -- cgit v1.2.3