mediatek/mt8183: Init audio related clock
Enable audio clock, intbus clock, infra clock and mtkaif 26m clock.Needed by audio playback 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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32458 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
parent
da79f5c91d
commit
5a69491a01
1 changed files with 12 additions and 0 deletions
|
@ -356,4 +356,16 @@ void mt_pll_init(void)
|
|||
|
||||
/* enable [14] dramc_pll104m_ck */
|
||||
setbits_le32(&mtk_topckgen->clk_misc_cfg_0, 1 << 14);
|
||||
|
||||
/* enable audio clock */
|
||||
setbits_le32(&mtk_topckgen->clk_cfg_5_clr, 1 << 7);
|
||||
|
||||
/* enable intbus clock */
|
||||
setbits_le32(&mtk_topckgen->clk_cfg_5_clr, 1 << 15);
|
||||
|
||||
/* enable infra clock */
|
||||
setbits_le32(&mt8183_infracfg->module_sw_cg_1_clr, 1 << 25);
|
||||
|
||||
/* enable mtkaif 26m clock */
|
||||
setbits_le32(&mt8183_infracfg->module_sw_cg_2_clr, 1 << 4);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue