Commit 9add9884b1fddc34ca186e00a2f868ccd5d02d87
1 parent
b90296fc39
Exists in
master
and in
54 other branches
Fix memtest breakage
CFG_MEMTEST_START uses weird magic involving gd, which fails to compile. Use hardcoded values instead (we actually know how much RAM we have on board.) Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Showing 1 changed file with 2 additions and 6 deletions Side-by-side Diff
include/configs/atstk1002.h
... | ... | @@ -200,12 +200,8 @@ |
200 | 200 | #define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT) + 16) |
201 | 201 | #define CFG_LONGHELP 1 |
202 | 202 | |
203 | -#define CFG_MEMTEST_START \ | |
204 | - ({ gd->bd->bi_dram[0].start; }) | |
205 | -#define CFG_MEMTEST_END \ | |
206 | - ({ \ | |
207 | - gd->bd->bi_dram[0].start + gd->bd->bi_dram[0].size; \ | |
208 | - }) | |
203 | +#define CFG_MEMTEST_START CFG_SDRAM_BASE | |
204 | +#define CFG_MEMTEST_END (CFG_MEMTEST_START + 0x700000) | |
209 | 205 | #define CFG_BAUDRATE_TABLE { 115200, 38400, 19200, 9600, 2400 } |
210 | 206 | |
211 | 207 | #endif /* __CONFIG_H */ |