From: Philipp Tomsich Date: Thu, 23 Mar 2017 22:27:45 +0000 (+0100) Subject: rockchip: spl: RK3399: add COUNTER_FREQUENCY define to rk3399_common.h X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=88cb1a9eb0dc2144d1fe587246820f2d6865b757;p=u-boot.git rockchip: spl: RK3399: add COUNTER_FREQUENCY define to rk3399_common.h The BootROM of the RK3399 SoC does not initialise the cntfrq_el0 (which holds the value 0 (zero) on entry into the SPL. This causes the timebase for U-Boot not to advance (and will cause a hang where a timeout would be expected... e.g. if something goes wrong during MMC/SD card startup). This change defines COUNTER_FREQUENCY, which is used by the AArch64 init code in arch/arm/cpu/armv8/start.S to set up cntfrq_el0 (if necessary). Signed-off-by: Philipp Tomsich Acked-by: Simon Glass --- diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h index c1ea616268..a36725cc13 100644 --- a/include/configs/rk3399_common.h +++ b/include/configs/rk3399_common.h @@ -21,6 +21,8 @@ #define CONFIG_SPL_LIBGENERIC_SUPPORT #define CONFIG_SPL_SERIAL_SUPPORT +#define COUNTER_FREQUENCY 24000000 + #define CONFIG_SYS_NS16550_MEM32 #define CONFIG_SYS_TEXT_BASE 0x00200000