]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: spl: Enable caches to speed up checksum validation
authorJonas Karlman <jonas@kwiboo.se>
Sat, 17 Feb 2024 12:34:04 +0000 (12:34 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 14 Mar 2024 03:48:40 +0000 (11:48 +0800)
commit6d8cdfd15367b9ed0f8c9458a0f9a9962a767000
treed9355c7b74af6510137f4dbe54a1389164d8a8c1
parent3e15dee38d45985b2ad666909720df1b4d412a98
rockchip: spl: Enable caches to speed up checksum validation

FIT checksum validation is very slow in SPL due to D-cache not being
enabled.

Enable caches in SPL on ARM64 SoCs to speed up FIT checksum validation,
from seconds to milliseconds.

This change enables caches in SPL on all Rockchip ARM64 boards, the
Kconfig options SPL_SYS_ICACHE_OFF and SPL_SYS_DCACHE_OFF can be used to
disable caches for a specific board or SoC if needed.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/spl.c