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>
#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)