]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
83xx, kmeter1, fix: update in the DTS the correct size for the first flash
authorHeiko Schocher <hs@denx.de>
Tue, 28 Jul 2009 12:53:44 +0000 (14:53 +0200)
committerKim Phillips <kim.phillips@freescale.com>
Wed, 29 Jul 2009 23:46:23 +0000 (18:46 -0500)
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>
board/keymile/kmeter1/kmeter1.c

index 8cac2c4662915ae587e8c47cbf9658231803f067..fa2f1cf431dffe664c4597f7acf7df4f1c533247 100644 (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);