From: Andrei Simion Date: Thu, 10 Nov 2011 03:29:19 +0000 (-0800) Subject: Xilinx: ARM: SCU timer input frequency update. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dbcd31ab52bd396e1eb82074cb67eb45d14e971;p=thirdparty%2Fu-boot.git Xilinx: ARM: SCU timer input frequency update. 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. --- diff --git a/include/configs/xpele.h b/include/configs/xpele.h index 10b8de4645a..525b26532cd 100644 --- a/include/configs/xpele.h +++ b/include/configs/xpele.h @@ -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 @@ -149,7 +149,7 @@ #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