[PATCH 02/41] arm: exynos5: Migrate USB_BOOTING to Kconfig

Tom Rini
2022-12-02T21:43:12Z

This symbol is enabled for all exynos5 platforms, move to Kconfig and
select it.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
Please note that include/configs/exynos5-common.h isn't covered by a
MAINTAINERS entry and should be, thanks.
---
arch/arm/mach-exynos/Kconfig | 4 ++++
include/configs/exynos5-common.h | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
index 29e35e443c6a..383af83066ec 100644
--- a/arch/arm/mach-exynos/Kconfig
+++ b/arch/arm/mach-exynos/Kconfig
@@ -4,6 +4,9 @@ config BOARD_COMMON
def_bool y
depends on !TARGET_SMDKV310 && !TARGET_ARNDALE

+config USB_BOOTING
+ bool
+
choice
prompt "EXYNOS architecture type select"
optional
@@ -24,6 +27,7 @@ config ARCH_EXYNOS5
select BOARD_EARLY_INIT_F
select CPU_V7A
select SHA_HW_ACCEL
+ select USB_BOOTING
imply CMD_HASH
imply CRC32_VERIFY
imply HASH_VERIFY
diff --git a/include/configs/exynos5-common.h b/include/configs/exynos5-common.h
index dd322c2b3a79..9b5c329bda18 100644
--- a/include/configs/exynos5-common.h
+++ b/include/configs/exynos5-common.h
@@ -58,7 +58,6 @@
/* USB */

/* USB boot mode */
-#define CONFIG_USB_BOOTING
#define EXYNOS_COPY_USB_FNPTR_ADDR 0x02020070
#define EXYNOS_USB_SECONDARY_BOOT 0xfeed0002
#define EXYNOS_IRAM_SECONDARY_BASE 0x02020018
--
2.25.1