]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
km/ppc: use Kconfig for MEMTEST configuration
authorHolger Brunck <holger.brunck@hitachi-powergrids.com>
Thu, 29 Oct 2020 12:54:54 +0000 (13:54 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
Also change back SYS_MEMTEST_END to 0x00f00000. 0xe00000 was wrong and
introduced due to the global Kconfig migration of this option in u-boot.

CC: Heiko Schocher <hs@denx.de>
CC: Tom Rini <trini@konsulko.com>
Signed-off-by: Holger Brunck <holger.brunck@hitachi-powergrids.com>
board/keymile/km83xx/Kconfig
board/keymile/km83xx/km83xx.c
include/configs/kmcoge5ne.h

index bbafabdcb2c1ae21e3a1dfcb41666febcb5f11b7..8247ae39d32e5115bf1b5ad204fc5c1133c01826 100644 (file)
@@ -15,6 +15,12 @@ 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
index 9eb000cca4d021c8c1196049ddf04bbe99c79a32..a984165e241ed233b40e5569dc28e9628736609c 100644 (file)
@@ -236,12 +236,8 @@ void post_word_store(ulong value)
 
 int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset)
 {
-       /*
-        * These match CONFIG_SYS_MEMTEST_START and
-        * (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START)
-        */
-       *vstart = 0x00100000;
-       *size = 0xe00000;
+       *vstart = CONFIG_SYS_MEMTEST_START;
+       *size = CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START;
        debug("arch_memory_test_prepare 0x%08X 0x%08X\n", *vstart, *size);
 
        return 0;
index 4d01f236c31f2a8694b7b89a8872f6e9abda7dbe..cdfb280aeeee3dd9770a483fac0d35cac768323f 100644 (file)
@@ -51,7 +51,7 @@
 /* enable POST tests */
 #define CONFIG_POST (CONFIG_SYS_POST_MEMORY|CONFIG_SYS_POST_MEM_REGIONS)
 #define CONFIG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */
-#define CPM_POST_WORD_ADDR  0x00f00000
+#define CPM_POST_WORD_ADDR  CONFIG_SYS_MEMTEST_END
 #define CONFIG_TESTPIN_REG  gprt3      /* for kmcoge5ne */
 #define CONFIG_TESTPIN_MASK 0x20       /* for kmcoge5ne */