summaryrefslogtreecommitdiff
path: root/include/configs/microblaze-generic.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2012-06-29 13:46:54 +0200
committerMichal Simek <monstr@monstr.eu>2012-09-11 09:24:58 +0200
commitbcbb046bd5cba6acb07aa99cad728726be8359e6 (patch)
tree4f12511039a8bf02fddfb4b40042106225b10ec3 /include/configs/microblaze-generic.h
parent26e6da854e70be8e3fb0dab7bbe41119b701ebe1 (diff)
downloadu-boot-imx-bcbb046bd5cba6acb07aa99cad728726be8359e6.zip
u-boot-imx-bcbb046bd5cba6acb07aa99cad728726be8359e6.tar.gz
u-boot-imx-bcbb046bd5cba6acb07aa99cad728726be8359e6.tar.bz2
microblaze: timer: Prepare for device-tree initialization
Fix CONFIG_SYS_HZ usage in board config. Do not use hardcoded value. Use CONFIG_SYS_HZ instead. Separate static configuration to single block. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'include/configs/microblaze-generic.h')
-rw-r--r--include/configs/microblaze-generic.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 1266cf7..721cd90 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -115,19 +115,11 @@
#endif
/* timer */
-#ifdef XILINX_TIMER_BASEADDR
-# if (XILINX_TIMER_IRQ != -1)
-# define CONFIG_SYS_TIMER_0 1
+#if defined(XILINX_TIMER_BASEADDR) && defined(XILINX_TIMER_IRQ)
# define CONFIG_SYS_TIMER_0_ADDR XILINX_TIMER_BASEADDR
# define CONFIG_SYS_TIMER_0_IRQ XILINX_TIMER_IRQ
-# define FREQUENCE XILINX_CLOCK_FREQ
-# define CONFIG_SYS_TIMER_0_PRELOAD ( FREQUENCE/1000 )
-# endif
-#elif XILINX_CLOCK_FREQ
-# define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ
-#else
-# error BAD CLOCK FREQ
#endif
+
/* FSL */
/* #define CONFIG_SYS_FSL_2 */
/* #define FSL_INTR_2 1 */