summaryrefslogtreecommitdiff
path: root/include/configs/socfpga_cyclone5.h
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-10-04 10:22:46 -0500
committerTom Rini <trini@ti.com>2013-11-04 11:23:45 -0500
commit23ab7ee0ffa9d5efd0b4ad830befba306d24a327 (patch)
tree8bc9d332823a587396c579d5c81c4cf48a576386 /include/configs/socfpga_cyclone5.h
parentb3a7f22b3e096f3699d3262e114110d6e7183816 (diff)
downloadu-boot-imx-23ab7ee0ffa9d5efd0b4ad830befba306d24a327.zip
u-boot-imx-23ab7ee0ffa9d5efd0b4ad830befba306d24a327.tar.gz
u-boot-imx-23ab7ee0ffa9d5efd0b4ad830befba306d24a327.tar.bz2
ARM: socfpga: convert to common timer code
Convert socfpga to use the commmon timer code. Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include/configs/socfpga_cyclone5.h')
-rw-r--r--include/configs/socfpga_cyclone5.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/configs/socfpga_cyclone5.h b/include/configs/socfpga_cyclone5.h
index dc74ad0..980636c 100644
--- a/include/configs/socfpga_cyclone5.h
+++ b/include/configs/socfpga_cyclone5.h
@@ -197,10 +197,11 @@
#define TIMER_LOAD_VAL 0xFFFFFFFF
/* Timer info */
#ifdef CONFIG_SOCFPGA_VIRTUAL_TARGET
-#define CONFIG_TIMER_CLOCK_KHZ 2400
+#define CONFIG_SYS_TIMER_RATE 2400000
#else
-#define CONFIG_TIMER_CLOCK_KHZ 25000
+#define CONFIG_SYS_TIMER_RATE 25000000
#endif
+#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
#define CONFIG_ENV_IS_NOWHERE