Attention is currently required from: yu jiaxin. Hello yu jiaxin,
I'd like you to do a code review. Please visit
https://review.coreboot.org/c/coreboot/+/60738
to review the following change.
Change subject: mb/google/corsola: Support audio ......................................................................
mb/google/corsola: Support audio
Turn on setting of audio power and select I2S pin-mux.
BUG=b:204164695 TEST=Verified by CLI command(badusbbeep/devbeep) on kingler and krabby
Signed-off-by: Jiaxin Yu jiaxin.yu@mediatek.com Change-Id: Ia6374d0e5535b7cff4df8759312786fef8b94b6b --- M src/mainboard/google/corsola/mainboard.c 1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/60738/1
diff --git a/src/mainboard/google/corsola/mainboard.c b/src/mainboard/google/corsola/mainboard.c index 910d8d6..747b507 100644 --- a/src/mainboard/google/corsola/mainboard.c +++ b/src/mainboard/google/corsola/mainboard.c @@ -24,6 +24,18 @@ register_bl31_aux_param(¶m_reset.h); }
+static void configure_audio(void) +{ + /* Power on audio */ + mtcmos_audio_power_on(); + + /* Set up I2S */ + gpio_set_mode(GPIO(I2S2_MCK), PAD_I2S2_MCK_FUNC_I2S2_MCK); + gpio_set_mode(GPIO(I2S2_BCK), PAD_I2S2_BCK_FUNC_I2S2_BCK); + gpio_set_mode(GPIO(I2S2_LRCK), PAD_I2S2_LRCK_FUNC_I2S2_LRCK); + gpio_set_mode(GPIO(EINT4), PAD_EINT4_FUNC_I2S3_DO); +} + static void mainboard_init(struct device *dev) { mtk_msdc_configure_emmc(true); @@ -35,6 +47,8 @@
setup_usb_host();
+ configure_audio(); + if (spm_init()) printk(BIOS_ERR, "spm init failed, system suspend may not work\n");