]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Setup proper frequence for ep108
authorMichal Simek <michal.simek@xilinx.com>
Fri, 5 Sep 2014 11:04:48 +0000 (13:04 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 5 Sep 2014 11:32:41 +0000 (13:32 +0200)
When u-boot runs standalone proper frequency to cntfrq_el0
in EL3 has to be setup. When u-boot runs from EL2/EL1
(from ATF) cntfrq_el0 is already setup by ATF or different
firmware.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h

index b2547f39cb01c283d7cdae4439c13304e8453e5a..cbbc91f47a28ccc19fb5d225543a3eb78227a12a 100644 (file)
@@ -52,8 +52,8 @@
 
 #define CONFIG_DEFAULT_DEVICE_TREE     zynqmp
 
-/* Generic Timer Definitions */
-#define COUNTER_FREQUENCY              0x1800000 /* 24MHz */
+/* Generic Timer Definitions - setup in EL3. Setup by ATF for other cases */
+#define COUNTER_FREQUENCY              4000000
 
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (CONFIG_ENV_SIZE + 0x400000)