MLK-18243-10 arm: imx8m: soc: enable SCTR clock before timer init
To i.MX8MM SCTR clock is disabled by ROM, so before timer init need to enable it. To i.MX8MQ, it does not hurt the clock is enabled again. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit 2347541e9e79f833716fe88f7de860b5704b5e48)
This commit is contained in:
parent
5ed2a6a4ac
commit
f5cfd600cf
|
|
@ -170,9 +170,11 @@ static void imx_set_wdog_powerdown(bool enable)
|
|||
int arch_cpu_init(void)
|
||||
{
|
||||
/*
|
||||
* Init timer at very early state, because sscg pll setting
|
||||
* will use it
|
||||
* Init timer at very early state, because pll setting will use it,
|
||||
* Rom Turnned off SCTR, enable it before timer_init
|
||||
*/
|
||||
|
||||
clock_enable(CCGR_SCTR, 1);
|
||||
timer_init();
|
||||
|
||||
if (IS_ENABLED(CONFIG_SPL_BUILD)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue