diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-06-23 00:31:55 +0300 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-08-13 18:12:22 +0300 |
commit | e78b04f9d52642a7284c7df7dbe46651af0c4065 (patch) | |
tree | 7023bb10481ca30ad7f4092206c1265e4db7a0f9 /include/configs/rk3368_common.h | |
parent | 525a8c8f2cccd1118b85061c44ac1dc11847c99c (diff) | |
download | u-boot-e78b04f9d52642a7284c7df7dbe46651af0c4065.tar.xz |
rockchip: rk3368: spl: define COUNTER_FREQUENCY to 24MHz
The BootROM of the RK3368 Boot ROM does not initialise cntfrq_el0.
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 the counter-frequency is not correctly set up, the calculation of
delays using the ARMv8 generic timer can not work correctly.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/rk3368_common.h')
-rw-r--r-- | include/configs/rk3368_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_common.h index b0c858c693..ddb7df0b66 100644 --- a/include/configs/rk3368_common.h +++ b/include/configs/rk3368_common.h @@ -21,6 +21,8 @@ #define CONFIG_SYS_CBSIZE 1024 #define CONFIG_SKIP_LOWLEVEL_INIT +#define COUNTER_FREQUENCY 24000000 + #define CONFIG_SYS_NS16550_MEM32 #define CONFIG_SYS_TEXT_BASE 0x00200000 |