]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: SCU timer input frequency update.
authorAndrei Simion <andreis@xilinx.com>
Thu, 10 Nov 2011 03:29:19 +0000 (19:29 -0800)
committerJohn Linn <john.linn@xilinx.com>
Fri, 11 Nov 2011 18:18:05 +0000 (10:18 -0800)
Modified the 'xpele.h' configuration such that the timer input
frequency is always half of the CPU core clock frequency from
'xparameters.h' (PERIPHCLK in the TRM) instead of hard-coded
to 5 MHz.

include/configs/xpele.h

index 10b8de4645a27c44e3be784c904ce47e8507ead3..525b26532cd22521caa2c549046b6c5f166914ee 100644 (file)
@@ -74,7 +74,7 @@
 /* IPADDR, SERVERIP */
 /* Need I2C for RTC? */
 
-#define CONFIG_IDENT_STRING    "\nXilinx Pele Emulaton Platform"
+#define CONFIG_IDENT_STRING    "\nXilinx Pele Emulation Platform"
 #define CONFIG_PANIC_HANG      1 /* For development/debugging */
 
 #define CONFIG_AUTO_COMPLETE   1
 #define CONFIG_TTC0    1
 #define CONFIG_GEM0    1
 
-#define TIMER_INPUT_CLOCK               5000000
+#define TIMER_INPUT_CLOCK               XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ / 2
 #define CONFIG_TIMER_PRESCALE           255
 #define TIMER_TICK_HZ                   (TIMER_INPUT_CLOCK / CONFIG_TIMER_PRESCALE)
 #define CONFIG_SYS_HZ                   1000