[PATCH 1/1] cmd: move CONFIG_SYS_MEMTEST_START/END to cmd/Kconfig

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Fri Jan 27 01:42:51 CET 2023


These symbols are not specific to Keymile boards.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 board/keymile/km83xx/Kconfig | 6 ------
 cmd/Kconfig                  | 8 ++++++++
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/board/keymile/km83xx/Kconfig b/board/keymile/km83xx/Kconfig
index f87a2e6416..014dde37cf 100644
--- a/board/keymile/km83xx/Kconfig
+++ b/board/keymile/km83xx/Kconfig
@@ -14,12 +14,6 @@ config KM_ENABLE_FULL_DM_DTS_SUPPORT
 	select PHYLIB
 endmenu
 
-config SYS_MEMTEST_START
-	default 0x00100000
-
-config SYS_MEMTEST_END
-	default 0x00f00000
-
 if TARGET_KMETER1
 
 config SYS_BOARD
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4fe2c75de2..bffb19924d 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -837,6 +837,14 @@ config CMD_MEMTEST
 
 if CMD_MEMTEST
 
+config SYS_MEMTEST_START
+	default 0x00100000 if SYS_BOARD="km83xx"
+	default TEXT_BASE
+
+config SYS_MEMTEST_END
+	default 0x00f00000 if SYS_BOARD="km83xx"
+	default TEXT_BASE
+
 config SYS_ALT_MEMTEST
 	bool "Alternative test"
 	help
-- 
2.38.1



More information about the U-Boot mailing list