soc/mediatek/mt8186: Enable ADSP clock

To use SOF correctly, we need to enable ADSP clock.

TEST=SOF driver is functional.
BUG=b:204229221

Signed-off-by: Mandy Liu <mandyjh.liu@mediatek.com>
Change-Id: Ia17db889829df2668cf2af1b71c6468230de68e1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68287
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:
Mandy Liu 2022-10-11 13:56:27 +08:00 committed by Felix Held
parent bd3d197723
commit f32d1e3acb
1 changed files with 5 additions and 2 deletions

View File

@ -474,8 +474,11 @@ void mt_pll_init(void)
write32(&mt8186_infracfg_ao->module_sw_cg_0_clr, 0x00000030); write32(&mt8186_infracfg_ao->module_sw_cg_0_clr, 0x00000030);
/* [7] DVFSRC_CG, [20] DEVICE_APC_CG */ /* [7] DVFSRC_CG, [20] DEVICE_APC_CG */
write32(&mt8186_infracfg_ao->module_sw_cg_1_clr, 0x00100080); write32(&mt8186_infracfg_ao->module_sw_cg_1_clr, 0x00100080);
/* [15] SEJ_F13M_CK_CG, [16] AES_TOP0_BCLK_CK_CG */ /*
write32(&mt8186_infracfg_ao->module_sw_cg_3_clr, 0x00018000); * [15] SEJ_F13M_CK_CG, [16] AES_TOP0_BCLK_CK_CG,
* [22] FADSP_26M_CG, [23] FADSP_32K_CG, [27] FADSP_CK_CG
*/
write32(&mt8186_infracfg_ao->module_sw_cg_3_clr, 0x08C18000);
} }
void mt_pll_raise_little_cpu_freq(u32 freq) void mt_pll_raise_little_cpu_freq(u32 freq)