mb/google/volteer: Add new Audio option to FW_CONFIG
Volteer has a new Audio option in FW_CONFIG. This patch adds support for it and when enabled, programs GPIO pins for I2S functionality. BUG=b:171174991 TEST=emerge-volteer coreboot Change-Id: I85bc37980957a3fb6c795858a4e4f44f3e3cc332 Signed-off-by: Wisley Chen <wisley.chen@quantatw.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47291 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
a04072c917
commit
35010ef9c5
|
@ -81,7 +81,8 @@ static void fw_config_handle(void *unused)
|
||||||
gpio_configure_pads(i2s_disable_pads, ARRAY_SIZE(i2s_disable_pads));
|
gpio_configure_pads(i2s_disable_pads, ARRAY_SIZE(i2s_disable_pads));
|
||||||
}
|
}
|
||||||
if (fw_config_probe(FW_CONFIG(AUDIO, MAX98357_ALC5682I_I2S)) ||
|
if (fw_config_probe(FW_CONFIG(AUDIO, MAX98357_ALC5682I_I2S)) ||
|
||||||
fw_config_probe(FW_CONFIG(AUDIO, MAX98373_ALC5682I_I2S))) {
|
fw_config_probe(FW_CONFIG(AUDIO, MAX98373_ALC5682I_I2S)) ||
|
||||||
|
fw_config_probe(FW_CONFIG(AUDIO, MAX98360_ALC5682I_I2S))) {
|
||||||
printk(BIOS_INFO, "Configure GPIOs for I2S audio on UP3.\n");
|
printk(BIOS_INFO, "Configure GPIOs for I2S audio on UP3.\n");
|
||||||
gpio_configure_pads(i2s_up3_enable_pads, ARRAY_SIZE(i2s_up3_enable_pads));
|
gpio_configure_pads(i2s_up3_enable_pads, ARRAY_SIZE(i2s_up3_enable_pads));
|
||||||
gpio_configure_pads(dmic_enable_pads, ARRAY_SIZE(dmic_enable_pads));
|
gpio_configure_pads(dmic_enable_pads, ARRAY_SIZE(dmic_enable_pads));
|
||||||
|
|
|
@ -15,6 +15,7 @@ fw_config
|
||||||
option MAX98373_ALC5682I_I2S 2
|
option MAX98373_ALC5682I_I2S 2
|
||||||
option MAX98373_ALC5682_SNDW 3
|
option MAX98373_ALC5682_SNDW 3
|
||||||
option MAX98373_ALC5682I_I2S_UP4 4
|
option MAX98373_ALC5682I_I2S_UP4 4
|
||||||
|
option MAX98360_ALC5682I_I2S 5
|
||||||
end
|
end
|
||||||
field TABLETMODE 11
|
field TABLETMODE 11
|
||||||
option TABLETMODE_DISABLED 0
|
option TABLETMODE_DISABLED 0
|
||||||
|
|
Loading…
Reference in New Issue