mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
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>
This commit is contained in:
parent
b3cf0a8f03
commit
0528ba0e1c
1 changed files with 6 additions and 0 deletions
|
@ -231,6 +231,12 @@ static void imx_set_wdog_powerdown(bool enable)
|
|||
int arch_cpu_init(void)
|
||||
{
|
||||
struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
|
||||
/*
|
||||
* ROM might disable clock for SCTR,
|
||||
* enable the clock before timer_init.
|
||||
*/
|
||||
if (IS_ENABLED(CONFIG_SPL_BUILD))
|
||||
clock_enable(CCGR_SCTR, 1);
|
||||
/*
|
||||
* Init timer at very early state, because sscg pll setting
|
||||
* will use it
|
||||
|
|
Loading…
Reference in a new issue