diff options
author | Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com> | 2020-05-07 13:26:57 +0900 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-05-26 15:24:13 +0000 |
commit | a1d0fb031c74853922d76d7341023efa2435562c (patch) | |
tree | 590ba37dc1424c562dedeb1121d535b7c1f0f17a | |
parent | dd956cbb57a255f6050628242be524f0e56df9be (diff) |
mb/google/nightfury: Enable max98390 amp
This change enables max98390 audio codec on nightfury.
BUG=b:149443429
BRANCH=firmware-hatch-12672.B
TEST=Built and checked audio function on nightfury
Signed-off-by: Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com>
Change-Id: Ic9678583370cf5e41c87e35ba12f86572708fada
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41127
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
-rw-r--r-- | src/mainboard/google/hatch/Kconfig.name | 2 | ||||
-rw-r--r-- | src/mainboard/google/hatch/variants/nightfury/overridetree.cb | 24 |
2 files changed, 18 insertions, 8 deletions
diff --git a/src/mainboard/google/hatch/Kconfig.name b/src/mainboard/google/hatch/Kconfig.name index 798438fd0e..195a4ea544 100644 --- a/src/mainboard/google/hatch/Kconfig.name +++ b/src/mainboard/google/hatch/Kconfig.name @@ -87,6 +87,8 @@ config BOARD_GOOGLE_NIGHTFURY bool "-> Nightfury" select BOARD_GOOGLE_BASEBOARD_HATCH_LAPTOP select BOARD_ROMSIZE_KB_16384 + select CHROMEOS_DSM_CALIB + select DRIVERS_I2C_MAX98390 config BOARD_GOOGLE_PUFF bool "-> Puff" diff --git a/src/mainboard/google/hatch/variants/nightfury/overridetree.cb b/src/mainboard/google/hatch/variants/nightfury/overridetree.cb index 82f80a96f5..3c184eb139 100644 --- a/src/mainboard/google/hatch/variants/nightfury/overridetree.cb +++ b/src/mainboard/google/hatch/variants/nightfury/overridetree.cb @@ -249,19 +249,27 @@ chip soc/intel/cannonlake register "mic_amp_in_sel" = ""diff"" device i2c 0x1a 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 end # No PCIe WiFi device pci 1d.5 off end device pci 1a.0 on end #eMMC device pci 1e.3 off end # GSPI #1 - device pci 1f.3 on - chip drivers/generic/max98357a - register "hid" = ""MX98357A"" - register "sdmode_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_H3)" - register "sdmode_delay" = "5" - device generic 0 on end - end - end # Intel HDA end # domain end |