Skip to content
Snippets Groups Projects
Commit 32da3398 authored by York Sun's avatar York Sun
Browse files

armv8/ls2085a: Enable cluster timebase for all clusters


LS2085A and its variants can have up to four clusters. It is safe
to enable timebase for all even some may be disabled.

Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
parent dcd468b8
No related branches found
No related tags found
No related merge requests found
...@@ -59,8 +59,15 @@ int timer_init(void) ...@@ -59,8 +59,15 @@ int timer_init(void)
u32 __iomem *cntcr = (u32 *)CONFIG_SYS_FSL_TIMER_ADDR; u32 __iomem *cntcr = (u32 *)CONFIG_SYS_FSL_TIMER_ADDR;
u32 __iomem *cltbenr = (u32 *)CONFIG_SYS_FSL_PMU_CLTBENR; u32 __iomem *cltbenr = (u32 *)CONFIG_SYS_FSL_PMU_CLTBENR;
out_le32(cltbenr, 0x1); /* enable cluster0 timebase */ /* Enable timebase for all clusters.
out_le32(cntcr, 0x1); /* enable clock for timer */ * It is safe to do so even some clusters are not enabled.
*/
out_le32(cltbenr, 0xf);
/* Enable clock for timer
* This is a global setting.
*/
out_le32(cntcr, 0x1);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment