Frank Chu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60413 )
Change subject: mb/google/volteer: Add fw confing MAX98373_ALC5682IVS_I2S_UP4 for codec 2nd source ......................................................................
mb/google/volteer: Add fw confing MAX98373_ALC5682IVS_I2S_UP4 for codec 2nd source
Add MAX98373_ALC5682IVS_I2S_UP4 fw confing option and configure GPIOs properly for UP4 design.
BUG=b:192535692 TEST=./gen_config config.star Local build image and test function correctly on DUT.
Signed-off-by: FrankChu frank_chu@pegatron.corp-partner.google.com Change-Id: I6d857101a8143ae4b074666d8ed478cc188a0435 --- M src/mainboard/google/volteer/fw_config.c M src/mainboard/google/volteer/variants/baseboard/devicetree.cb 2 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/60413/1
diff --git a/src/mainboard/google/volteer/fw_config.c b/src/mainboard/google/volteer/fw_config.c index 1025119..474c4e1 100644 --- a/src/mainboard/google/volteer/fw_config.c +++ b/src/mainboard/google/volteer/fw_config.c @@ -100,7 +100,8 @@ gpio_configure_pads(dmic_enable_pads, ARRAY_SIZE(dmic_enable_pads)); gpio_configure_pads(sndw_disable_pads, ARRAY_SIZE(sndw_disable_pads)); } - if (fw_config_probe(FW_CONFIG(AUDIO, MAX98373_ALC5682I_I2S_UP4))) { + if (fw_config_probe(FW_CONFIG(AUDIO, MAX98373_ALC5682I_I2S_UP4)) || + fw_config_probe(FW_CONFIG(AUDIO, MAX98373_ALC5682IVS_I2S_UP4))) { printk(BIOS_INFO, "Configure GPIOs for I2S audio on UP4.\n"); gpio_configure_pads(i2s_up4_enable_pads, ARRAY_SIZE(i2s_up4_enable_pads)); gpio_configure_pads(dmic_enable_pads, ARRAY_SIZE(dmic_enable_pads)); diff --git a/src/mainboard/google/volteer/variants/baseboard/devicetree.cb b/src/mainboard/google/volteer/variants/baseboard/devicetree.cb index a93a38a..d985a60 100644 --- a/src/mainboard/google/volteer/variants/baseboard/devicetree.cb +++ b/src/mainboard/google/volteer/variants/baseboard/devicetree.cb @@ -20,6 +20,7 @@ option MAX98373_ALC5682I_I2S_UP4 4 option MAX98360_ALC5682I_I2S 5 option RT1011_ALC5682I_I2S 6 + option MAX98373_ALC5682IVS_I2S_UP4 7 end field TABLETMODE 11 option TABLETMODE_DISABLED 0