summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-armv7/systimer.h
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-06-12 22:24:49 -0500
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2013-07-25 08:15:33 +0200
commit714d1f5da53101ec44ab9c3d10564462b102bd8f (patch)
treea4be03f06301058de1f645e762d97e92a70c2aa2 /arch/arm/include/asm/arch-armv7/systimer.h
parentec0e413f934fd70968b4ca0daa530cbe8f5cdb4f (diff)
downloadblackbird-obmc-uboot-714d1f5da53101ec44ab9c3d10564462b102bd8f.tar.gz
blackbird-obmc-uboot-714d1f5da53101ec44ab9c3d10564462b102bd8f.zip
ARM: highbank: set timer prescaler to 256
The 150MHz clock rate gives u-boot time functions problems and there's no benefit to a fast clock, so lower the rate. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'arch/arm/include/asm/arch-armv7/systimer.h')
-rw-r--r--arch/arm/include/asm/arch-armv7/systimer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-armv7/systimer.h b/arch/arm/include/asm/arch-armv7/systimer.h
index e745e37509..08125f71e7 100644
--- a/arch/arm/include/asm/arch-armv7/systimer.h
+++ b/arch/arm/include/asm/arch-armv7/systimer.h
@@ -30,6 +30,8 @@
#define SYSTIMER_RELOAD 0xFFFFFFFF
#define SYSTIMER_EN (1 << 7)
#define SYSTIMER_32BIT (1 << 1)
+#define SYSTIMER_PRESC_16 (1 << 2)
+#define SYSTIMER_PRESC_256 (1 << 3)
struct systimer {
u32 timer0load; /* 0x00 */
OpenPOWER on IntegriCloud