summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2015-01-06 13:18:43 -0800
committerYork Sun <yorksun@freescale.com>2015-02-24 13:08:50 -0800
commit32da3398b5199ae469ced423cfd7157934140e81 (patch)
tree6b768eb524394f5d34cf5fde035c359b724ea1f2 /board
parentdcd468b8f43c5077c42c75b15cf3204e6b6be46c (diff)
downloadtalos-obmc-uboot-32da3398b5199ae469ced423cfd7157934140e81.tar.gz
talos-obmc-uboot-32da3398b5199ae469ced423cfd7157934140e81.zip
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: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/ls2085a/ls2085a.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/board/freescale/ls2085a/ls2085a.c b/board/freescale/ls2085a/ls2085a.c
index 163a4c486a..ee75d1b7ed 100644
--- a/board/freescale/ls2085a/ls2085a.c
+++ b/board/freescale/ls2085a/ls2085a.c
@@ -59,8 +59,15 @@ int timer_init(void)
u32 __iomem *cntcr = (u32 *)CONFIG_SYS_FSL_TIMER_ADDR;
u32 __iomem *cltbenr = (u32 *)CONFIG_SYS_FSL_PMU_CLTBENR;
- out_le32(cltbenr, 0x1); /* enable cluster0 timebase */
- out_le32(cntcr, 0x1); /* enable clock for timer */
+ /* Enable timebase for all clusters.
+ * 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;
}
OpenPOWER on IntegriCloud