Skip to contentSkip to conversation

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

PATCH New Heiko Schocher 2 participants 2 messages Jul 28, 2009 – Jul 29, 2009

lore
Share & tools
lore
#0 lore raw

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

When updating the "reg" in the "/localbus/flash at 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.

---
 board/keymile/kmeter1/kmeter1.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
board/keymile/kmeter1/kmeter1.c +1 -0
index 8cac2c4..fa2f1cf 100644
@@ -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);
Signature · 5 lines
1.6.0.6

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Applied
#1 lore raw

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

Quoted 5 lines · On Tue, 28 Jul 2009 14:53:44 +0200 Heiko Schocher <[email protected]> wrote:

When updating the "reg" in the "/localbus/flash at 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.

applied.

Thanks,

Kim