From f190c11b1f22ff766e046588e5a7bb55f28ae305 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Sat, 5 Nov 2005 15:50:16 +0100 Subject: [PATCH] Adjust bd->bi_flashstart on Yellowstone & Yosemite to correct size Patch by Stefan Roese, 05 Nov 2005 --- CHANGELOG | 3 +++ board/amcc/yellowstone/yellowstone.c | 4 ++++ board/amcc/yosemite/yosemite.c | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index e7606ee3ec..9e8557083e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,9 @@ Changes for U-Boot 1.1.4: ====================================================================== +* Adjust bd->bi_flashstart on Yellowstone & Yosemite to correct size + Patch by Stefan Roese, 05 Nov 2005 + * Additional fix for external IRQ config on Yellowstone & Yosemite Patch by Stefan Roese, 03 Nov 2005 diff --git a/board/amcc/yellowstone/yellowstone.c b/board/amcc/yellowstone/yellowstone.c index 7ca60b6401..069e28f3c8 100644 --- a/board/amcc/yellowstone/yellowstone.c +++ b/board/amcc/yellowstone/yellowstone.c @@ -173,6 +173,10 @@ int misc_init_r (void) mtdcr(ebccfga, pb0cr); mtdcr(ebccfgd, pbcr); + /* adjust flash start and offset */ + gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize; + gd->bd->bi_flashoffset = 0; + /* Monitor protection ON by default */ (void)flash_protect(FLAG_PROTECT_SET, -CFG_MONITOR_LEN, diff --git a/board/amcc/yosemite/yosemite.c b/board/amcc/yosemite/yosemite.c index bc3d85bb54..61a39beed7 100644 --- a/board/amcc/yosemite/yosemite.c +++ b/board/amcc/yosemite/yosemite.c @@ -169,6 +169,10 @@ int misc_init_r (void) mtdcr(ebccfga, pb0cr); mtdcr(ebccfgd, pbcr); + /* adjust flash start and offset */ + gd->bd->bi_flashstart = 0 - gd->bd->bi_flashsize; + gd->bd->bi_flashoffset = 0; + /* Monitor protection ON by default */ (void)flash_protect(FLAG_PROTECT_SET, -CFG_MONITOR_LEN, -- 2.25.1