mb/google/skywalker: Add AW88081 support for beep sound
Add the FW_CONFIG configuration for the audio amp. BUG=b:426678967 TEST=emerge-skywalker coreboot chromeos-bootimage BRANCH=Skywalker Change-Id: Iaf461a26db92597883c8fa61f292bf14a145145c Signed-off-by: Cai Chen <chencai5@huaqin.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89913 Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
d8bcf242c6
commit
9bea3130b5
2 changed files with 14 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ fw_config
|
|||
field AUDIO_AMP 25 27
|
||||
option AMP_RT9123 0
|
||||
option AMP_RT1019 1
|
||||
option AMP_AW88081 2
|
||||
option AMP_ALC5645 3
|
||||
option AMP_CS35L51 4
|
||||
end
|
||||
|
|
|
|||
|
|
@ -50,6 +50,17 @@ static void configure_cs35l51(void)
|
|||
printk(BIOS_INFO, "%s: AMP configuration done\n", __func__);
|
||||
}
|
||||
|
||||
static void configure_aw88081(void)
|
||||
{
|
||||
/* Set the SOC corresponding pin to I2S related function */
|
||||
setup_i2s_speaker();
|
||||
|
||||
/* Init I2C bus timing register for audio codecs */
|
||||
mtk_i2c_bus_init(I2C8, I2C_SPEED_STANDARD);
|
||||
|
||||
printk(BIOS_INFO, "%s: AMP configuration done\n", __func__);
|
||||
}
|
||||
|
||||
static void configure_alc5645(void)
|
||||
{
|
||||
/* SoC I2S */
|
||||
|
|
@ -75,6 +86,8 @@ static void configure_audio(void)
|
|||
if (fw_config_probe(FW_CONFIG(AUDIO_AMP, AMP_RT9123)) ||
|
||||
fw_config_probe(FW_CONFIG(AUDIO_AMP, AMP_RT1019)))
|
||||
configure_rt9123_rt1019();
|
||||
else if (fw_config_probe(FW_CONFIG(AUDIO_AMP, AMP_AW88081)))
|
||||
configure_aw88081();
|
||||
else if (fw_config_probe(FW_CONFIG(AUDIO_AMP, AMP_ALC5645)))
|
||||
configure_alc5645();
|
||||
else if (fw_config_probe(FW_CONFIG(AUDIO_AMP, AMP_CS35L51)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue