google/oak: Config audio for rev5
BRANCH=none BUG=none TEST=emerge-oak coreboot Change-Id: Ibdafa4ffe0baf5231654e67612b7ca59d835b602 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 63fedfec26ba1444934e348ce59609fa88e12de5 Original-Change-Id: Ifbbf8d2b3b6e163481843308c2e3edc4a55f90c6 Original-Signed-off-by: Koro Chen <koro.chen@mediatek.com> Original-Reviewed-on: https://chromium-review.googlesource.com/319988 Original-Commit-Ready: Yidi Lin <yidi.lin@mediatek.com> Original-Tested-by: Yidi Lin <yidi.lin@mediatek.com> Original-Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/13975 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
603cb8511f
commit
a9f6529924
|
@ -108,7 +108,8 @@ static void configure_audio(void)
|
|||
mt6391_configure_ldo(LDO_VCAMA, LDO_1P8);
|
||||
|
||||
/* reset ALC5676 */
|
||||
gpio_output(PAD_LCM_RST, 1);
|
||||
if (board_id() < 5)
|
||||
gpio_output(PAD_LCM_RST, 1);
|
||||
|
||||
/* SoC I2S */
|
||||
gpio_set_mode(PAD_I2S0_LRCK, PAD_I2S0_LRCK_FUNC_I2S1_WS);
|
||||
|
@ -116,6 +117,8 @@ static void configure_audio(void)
|
|||
gpio_set_mode(PAD_I2S0_MCK, PAD_I2S0_MCK_FUNC_I2S1_MCK);
|
||||
gpio_set_mode(PAD_I2S0_DATA0, PAD_I2S0_DATA0_FUNC_I2S1_DO_1);
|
||||
gpio_set_mode(PAD_I2S0_DATA1, PAD_I2S0_DATA1_FUNC_I2S2_DI_2);
|
||||
if (board_id() >= 5)
|
||||
gpio_set_mode(PAD_UCTS0, PAD_UCTS0_FUNC_I2S2_DI_1);
|
||||
|
||||
/* codec ext MCLK ON */
|
||||
mt6391_gpio_output(MT6391_KP_COL4, 1);
|
||||
|
|
Loading…
Reference in New Issue