summaryrefslogtreecommitdiffstats
path: root/include/configs/xilinx_zynqmp.h
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2015-11-05 08:32:14 +0100
committerMichal Simek <michal.simek@xilinx.com>2016-01-27 15:55:57 +0100
commit713b616459eb0d8a7805e31f4b8e9a6fe786b3aa (patch)
treeba2d8d74522382734daf4d758b160be76c3589f3 /include/configs/xilinx_zynqmp.h
parent99cb9ce029b58dd35d533371be0e333212b7798f (diff)
downloadtalos-obmc-uboot-713b616459eb0d8a7805e31f4b8e9a6fe786b3aa.tar.gz
talos-obmc-uboot-713b616459eb0d8a7805e31f4b8e9a6fe786b3aa.zip
ARM64: zynqmp: Setup correct COUNTER_FREQUENCY for silicon
When U-Boot runs from EL3 system timer is setup based on this macro. Software default freq for silicon is 100MHz but enable opton to rewrite it. Emulation platform is using 4MHz. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs/xilinx_zynqmp.h')
-rw-r--r--include/configs/xilinx_zynqmp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h
index ac68998aeb..dcd7552bd1 100644
--- a/include/configs/xilinx_zynqmp.h
+++ b/include/configs/xilinx_zynqmp.h
@@ -43,7 +43,9 @@
#define CONFIG_OF_LIBFDT
/* Generic Timer Definitions - setup in EL3. Setup by ATF for other cases */
-#define COUNTER_FREQUENCY 4000000
+#if !defined(COUNTER_FREQUENCY)
+# define COUNTER_FREQUENCY 100000000
+#endif
/* Size of malloc() pool */
#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 0x2000000)
OpenPOWER on IntegriCloud