diff options
author | Dai Okamura <okamura.dai@socionext.com> | 2022-12-09 14:33:48 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-01-03 00:01:39 +0300 |
commit | 872413bb0a03831ffe6f060b40cdb8bcc76f9867 (patch) | |
tree | 3a3bce649fcfa9fbee7a5ab7e6b6def26eea259a /configs/uniphier_ld4_sld8_defconfig | |
parent | ef75d482aa9d75d41305e5dddcbc8632f528e6f5 (diff) | |
download | u-boot-872413bb0a03831ffe6f060b40cdb8bcc76f9867.tar.xz |
arm: uniphier: use DM_TIMER of arm a9 global timer
All uniphier v7 SoCs have cortex-a9 and use cortex-a9 global timer
in a simple implementation. Now DM_TIMER of it is available
on 35751c7f3f ("timer: sti: convert sti-timer to arm a9 global timer"),
so let's switch to it.
The old driver reads the lower 32bits of counter field
and sets the prescaler as 50 with PERIPHCLK(=50MHz),
so the global timer works as a 32-bit 1MHz timer.
The DM_TIMER uses the whole 64bits with no prescaler,
so the global timer works as a 64-bit PERIPHCLK timer.
CONFIG_SYS_HZ_CLOCK is set as the default PERIPHCLK frequency,
if there is no 'clocks' property in devicetree.
Signed-off-by: Dai Okamura <okamura.dai@socionext.com>
Diffstat (limited to 'configs/uniphier_ld4_sld8_defconfig')
-rw-r--r-- | configs/uniphier_ld4_sld8_defconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/uniphier_ld4_sld8_defconfig b/configs/uniphier_ld4_sld8_defconfig index b361e3f403..b11dea593a 100644 --- a/configs/uniphier_ld4_sld8_defconfig +++ b/configs/uniphier_ld4_sld8_defconfig @@ -13,6 +13,8 @@ CONFIG_SYS_LOAD_ADDR=0x85000000 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x84000000 CONFIG_SYS_MONITOR_LEN=2097152 +CONFIG_TIMER=y +CONFIG_SPL_TIMER=y CONFIG_TIMESTAMP=y # CONFIG_ARCH_FIXUP_FDT_MEMORY is not set CONFIG_BOOTCOMMAND="run ${bootdev}script; run ${bootdev}boot" |