summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2009-07-28 14:53:44 +0200
committerKim Phillips <kim.phillips@freescale.com>2009-07-29 18:46:23 -0500
commit901be89a27e11b2627c132ee87c7761bd6886091 (patch)
treed3895397ad5c8c4e7db10ce5de0717ce5dc24826 /board
parent108f56b056780f0d23f720d98709304f84a0d6c8 (diff)
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>
Diffstat (limited to 'board')
-rw-r--r--board/keymile/kmeter1/kmeter1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/keymile/kmeter1/kmeter1.c b/board/keymile/kmeter1/kmeter1.c
index 8cac2c46629..fa2f1cf431d 100644
--- a/board/keymile/kmeter1/kmeter1.c
+++ b/board/keymile/kmeter1/kmeter1.c
@@ -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);