summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorJonas Karlman <jonas@kwiboo.se>2024-04-08 18:14:00 +0000
committerKever Yang <kever.yang@rock-chips.com>2024-04-26 15:47:03 +0800
commit12e07033c77d52a99682778e078ef63be619052d (patch)
tree82721fe9419a8d22ae3b6d080146de77569ff1f1 /arch/arm
parentbbc83747d872b0dfacfc97a7c45803da7b62f072 (diff)
downloadu-boot-12e07033c77d52a99682778e078ef63be619052d.tar.gz
u-boot-12e07033c77d52a99682778e078ef63be619052d.tar.bz2
u-boot-12e07033c77d52a99682778e078ef63be619052d.zip
rockchip: rk3308: Enable ARMv8 crypto and FIT checksum validation
The RK3308 SoC support ARMv8 Cryptography Extensions and use of the ARMv8 crypto extensions help speed up FIT checksum validation in SPL. Imply ARMV8_SET_SMPEN and ARMV8_CRYPTO to take advantage of the crypto extensions for SHA256 when validating checksum of FIT images. Imply SPL_FIT_SIGNATURE and LEGACY_IMAGE_FORMAT to enable FIT checksum validation on all RK3308 boards. Also disable CONFIG_SPL_RAW_IMAGE_SUPPORT in board defconfigs to ensure SPL does not try to jump to code that failed checksum validation. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-rockchip/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 4a77f18102..0902eb2854 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -160,8 +160,12 @@ config ROCKCHIP_RK3308
select SPL_ATF
select SPL_ATF_NO_PLATFORM_PARAM
select SPL_LOAD_FIT
+ imply ARMV8_CRYPTO
+ imply ARMV8_SET_SMPEN
+ imply LEGACY_IMAGE_FORMAT
imply ROCKCHIP_COMMON_BOARD
imply SPL_CLK
+ imply SPL_FIT_SIGNATURE
imply SPL_RAM
imply SPL_REGMAP
imply SPL_ROCKCHIP_COMMON_BOARD