]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: rk3308: Enable ARMv8 crypto and FIT checksum validation
authorJonas Karlman <jonas@kwiboo.se>
Mon, 8 Apr 2024 18:14:00 +0000 (18:14 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 26 Apr 2024 07:47:03 +0000 (15:47 +0800)
commit12e07033c77d52a99682778e078ef63be619052d
tree82721fe9419a8d22ae3b6d080146de77569ff1f1
parentbbc83747d872b0dfacfc97a7c45803da7b62f072
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>
arch/arm/mach-rockchip/Kconfig
configs/evb-rk3308_defconfig
configs/roc-cc-rk3308_defconfig
configs/rock-pi-s-rk3308_defconfig