summaryrefslogtreecommitdiffstats
path: root/board/amcc/yosemite
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2005-11-05 15:50:16 +0100
committerStefan Roese <sr@denx.de>2005-11-05 15:50:16 +0100
commitf190c11b1f22ff766e046588e5a7bb55f28ae305 (patch)
tree1c41a7beffe8a293174dcb7c28b394349204a047 /board/amcc/yosemite
parent4d03a21f2329bb13a9661a23742ac0b77a7a76d5 (diff)
downloadtalos-obmc-uboot-f190c11b1f22ff766e046588e5a7bb55f28ae305.tar.gz
talos-obmc-uboot-f190c11b1f22ff766e046588e5a7bb55f28ae305.zip
Adjust bd->bi_flashstart on Yellowstone & Yosemite to correct size
Patch by Stefan Roese, 05 Nov 2005
Diffstat (limited to 'board/amcc/yosemite')
-rw-r--r--board/amcc/yosemite/yosemite.c4
1 files changed, 4 insertions, 0 deletions
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,
OpenPOWER on IntegriCloud