Commit 71919cf1 authored by Daniel Schwierzeck's avatar Daniel Schwierzeck Committed by Marek Vasut
Browse files

MIPS: board.c: fix init of flash data in bd_info

Boards with CONFIG_SYS_NO_FLASH should not forced to define
CONFIG_SYS_FLASH_BASE. In this case the flash data in bd_info
should be initialized with 0 like the other archs do.
Signed-off-by: Daniel Schwierzeck's avatarDaniel Schwierzeck <>
parent c008b6f6
......@@ -294,15 +294,19 @@ void board_init_r(gd_t *id, ulong dest_addr)
/* configure available FLASH banks */
size = flash_init();
bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
bd->bi_flashsize = size;
bd->bi_flashstart = CONFIG_SYS_FLASH_BASE;
bd->bi_flashoffset = monitor_flash_len; /* reserved area for U-Boot */
bd->bi_flashoffset = 0;
bd->bi_flashstart = 0;
bd->bi_flashsize = 0;
bd->bi_flashoffset = 0;
puts("NAND: ");
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