Commit c904a0b7 authored by Holger Brunck's avatar Holger Brunck Committed by Tom Rini
Browse files

km/ppc: use Kconfig for MEMTEST configuration



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: default avatarHolger Brunck <holger.brunck@hitachi-powergrids.com>
parent aef04a8a
...@@ -15,6 +15,12 @@ config KM_ENABLE_FULL_DM_DTS_SUPPORT ...@@ -15,6 +15,12 @@ config KM_ENABLE_FULL_DM_DTS_SUPPORT
select PHYLIB select PHYLIB
endmenu endmenu
config SYS_MEMTEST_START
default 0x00100000
config SYS_MEMTEST_END
default 0x00f00000
if TARGET_KMETER1 if TARGET_KMETER1
config SYS_BOARD config SYS_BOARD
......
...@@ -236,12 +236,8 @@ void post_word_store(ulong value) ...@@ -236,12 +236,8 @@ void post_word_store(ulong value)
int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset) int arch_memory_test_prepare(u32 *vstart, u32 *size, phys_addr_t *phys_offset)
{ {
/* *vstart = CONFIG_SYS_MEMTEST_START;
* These match CONFIG_SYS_MEMTEST_START and *size = CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START;
* (CONFIG_SYS_MEMTEST_END - CONFIG_SYS_MEMTEST_START)
*/
*vstart = 0x00100000;
*size = 0xe00000;
debug("arch_memory_test_prepare 0x%08X 0x%08X\n", *vstart, *size); debug("arch_memory_test_prepare 0x%08X 0x%08X\n", *vstart, *size);
return 0; return 0;
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
/* enable POST tests */ /* enable POST tests */
#define CONFIG_POST (CONFIG_SYS_POST_MEMORY|CONFIG_SYS_POST_MEM_REGIONS) #define CONFIG_POST (CONFIG_SYS_POST_MEMORY|CONFIG_SYS_POST_MEM_REGIONS)
#define CONFIG_POST_EXTERNAL_WORD_FUNCS /* use own functions, not generic */ #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_REG gprt3 /* for kmcoge5ne */
#define CONFIG_TESTPIN_MASK 0x20 /* for kmcoge5ne */ #define CONFIG_TESTPIN_MASK 0x20 /* for kmcoge5ne */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment