Jiaxin Yu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32458
Change subject: mediatek/mt8183: Init audio related clock ......................................................................
mediatek/mt8183: Init audio related clock
Enable audio hoping clock and intbus clock and infra clock. Needed by playback beep sound in firmware.
BUG=b:117254418 BRANCH=none TEST=Build pass and verified on kukui p1 board
Change-Id: I88060d9796cc23ad7f524943f36869e1ec85073d Signed-off-by: Jiaxin Yu jiaxin.yu@mediatek.com --- M src/soc/mediatek/mt8183/pll.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/32458/1
diff --git a/src/soc/mediatek/mt8183/pll.c b/src/soc/mediatek/mt8183/pll.c index 61aa2de..51c8774 100644 --- a/src/soc/mediatek/mt8183/pll.c +++ b/src/soc/mediatek/mt8183/pll.c @@ -356,4 +356,10 @@
/* enable [14] dramc_pll104m_ck */ setbits_le32(&mtk_topckgen->clk_misc_cfg_0, 1 << 14); + + /* enable audio needed */ + setbits_le32(&mtk_topckgen->clk_cfg_5_clr, 1 << 7); + setbits_le32(&mtk_topckgen->clk_cfg_5_clr, 1 << 15); + setbits_le32(&mt8183_infracfg->module_sw_cg_1_clr, 1 << 25); + setbits_le32(&mt8183_infracfg->module_sw_cg_2_clr, 1 << 4); }