From: Kever Yang <kever.yang@rock-chips.com>
Date: Tue, 10 Nov 2020 03:43:32 +0000 (+0800)
Subject: rockchip: Enable BINMAN for boards enable SPL_OPTEE
X-Git-Tag: v2025.01-rc5-pxa1908~2126^2~1
X-Git-Url: http://git.dujemihanovic.xyz/browse.php?a=commitdiff_plain;h=7a9c574cf106583b360a6b66f42706eecba96518;p=u-boot.git

rockchip: Enable BINMAN for boards enable SPL_OPTEE

Rockchip has many 32bit SoCs and some of them are support SPL_OPTEE now,
only boards with SPL_OPTEE support can fit BINMAN well, other boards
will fail at initr_binman() in U-Boot proper after below patch,
eg. rv1108 board.
    83187546ae binman: Support multiple images in the library

Fixes: 79030a4861 ("rockchip: Add Single boot image (with binman, pad_cat)")
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
---

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index b2f7fcbd6e..5903c09370 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1721,7 +1721,7 @@ config ARCH_STM32MP
 config ARCH_ROCKCHIP
 	bool "Support Rockchip SoCs"
 	select BLK
-	select BINMAN if !ARM64
+	select BINMAN if SPL_OPTEE
 	select DM
 	select DM_GPIO
 	select DM_I2C