[PATCH 05/22] stmark2: Migrate CONFIG_SYS_EXTRA_OPTIONS to Kconfig

Tom Rini trini at konsulko.com
Wed Mar 23 22:19:52 CET 2022


This platform is the only one to set these options, so define them in
the board Kconfig file.

Cc: Angelo Dureghello <angelo at sysam.it>
Signed-off-by: Tom Rini <trini at konsulko.com>
---
 board/sysam/stmark2/Kconfig | 7 +++++++
 configs/stmark2_defconfig   | 1 -
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/board/sysam/stmark2/Kconfig b/board/sysam/stmark2/Kconfig
index 87ab7ab7b521..4abcdb3aaf16 100644
--- a/board/sysam/stmark2/Kconfig
+++ b/board/sysam/stmark2/Kconfig
@@ -1,5 +1,12 @@
 if TARGET_STMARK2
 
+config CF_SBF
+	def_bool y
+
+config SYS_INPUT_CLKSRC
+	hex
+	default 30000000
+
 config SYS_CPU
 	default "mcf5445x"
 
diff --git a/configs/stmark2_defconfig b/configs/stmark2_defconfig
index 17007a003b9f..c85e3e75d3df 100644
--- a/configs/stmark2_defconfig
+++ b/configs/stmark2_defconfig
@@ -9,7 +9,6 @@ CONFIG_TARGET_STMARK2=y
 CONFIG_MCFTMR=y
 CONFIG_SYS_LOAD_ADDR=0x40010000
 CONFIG_TIMESTAMP=y
-CONFIG_SYS_EXTRA_OPTIONS="CF_SBF,SYS_SERIAL_BOOT,SYS_INPUT_CLKSRC=30000000"
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/ram0 rw rootfstype=ramfs rdinit=/bin/init devtmpfs.mount=1"
 CONFIG_USE_BOOTCOMMAND=y
-- 
2.25.1



More information about the U-Boot mailing list