summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-10-04 10:22:48 -0500
committerTom Rini <trini@ti.com>2013-11-04 11:24:22 -0500
commit5b6da28352f4ae64d78a12e608133c1b876b992c (patch)
treed249442c0455ab860eafe499fcc92bf557ab5820 /include
parent31df9893b9004938722dadcc025b337fed99ccab (diff)
downloadu-boot-imx-5b6da28352f4ae64d78a12e608133c1b876b992c.zip
u-boot-imx-5b6da28352f4ae64d78a12e608133c1b876b992c.tar.gz
u-boot-imx-5b6da28352f4ae64d78a12e608133c1b876b992c.tar.bz2
ARM: versatile: convert to common timer code
Convert versatile to use the commmon timer code. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/versatile.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/configs/versatile.h b/include/configs/versatile.h
index 36daeb3..10738ac 100644
--- a/include/configs/versatile.h
+++ b/include/configs/versatile.h
@@ -25,12 +25,11 @@
#define CONFIG_SYS_MEMTEST_START 0x100000
#define CONFIG_SYS_MEMTEST_END 0x10000000
-#define CONFIG_SYS_HZ (1000000 / 256)
-#define CONFIG_SYS_TIMERBASE 0x101E2000 /* Timer 0 and 1 base */
-#define CONFIG_SYS_TIMER_INTERVAL 10000
-#define CONFIG_SYS_TIMER_RELOAD (CONFIG_SYS_TIMER_INTERVAL >> 4)
-#define CONFIG_SYS_TIMER_CTRL 0x84 /* Enable, Clock / 16 */
+#define CONFIG_SYS_TIMERBASE 0x101E2000 /* Timer 0 and 1 base */
+#define CONFIG_SYS_TIMER_RATE (1000000 / 256)
+#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
+#define CONFIG_SYS_TIMER_COUNTS_DOWN
/*
* control registers