83xx, kmeter1, fix: update in the DTS the correct size for the first flash

When updating the "reg" in the "/localbus/flash@f0000000,0" node
size was wrong updated for the first flash, because the total
size was filled in, instead of the right size for it.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
This commit is contained in:
Heiko Schocher 2009-07-28 14:53:44 +02:00 committed by Kim Phillips
parent 108f56b056
commit 901be89a27
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ void ft_blob_update (void *blob, bd_t *bd)
len);
info = flash_get_info(CONFIG_SYS_FLASH_BASE);
size = info->size;
flash_reg[2] = cpu_to_be32 (size);
flash_reg[4] = flash_reg[2];
info = flash_get_info(CONFIG_SYS_FLASH_BASE_1);