summaryrefslogtreecommitdiff
path: root/board/esd/cpci405/flash.c
diff options
context:
space:
mode:
authorstroese <stroese>2003-05-23 11:30:39 +0000
committerstroese <stroese>2003-05-23 11:30:39 +0000
commitd4629c8c8da8156393cebe1f38e3f1e24196efcf (patch)
tree81b1ab54932e154688e21c9c635f3ccb09242baf /board/esd/cpci405/flash.c
parent46578cc018c0a109a2ae4891611a94e4dc2095b6 (diff)
downloadu-boot-imx-d4629c8c8da8156393cebe1f38e3f1e24196efcf.zip
u-boot-imx-d4629c8c8da8156393cebe1f38e3f1e24196efcf.tar.gz
u-boot-imx-d4629c8c8da8156393cebe1f38e3f1e24196efcf.tar.bz2
CPCI405AB (special version of esd CPCI405) board added.
Diffstat (limited to 'board/esd/cpci405/flash.c')
-rw-r--r--board/esd/cpci405/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/esd/cpci405/flash.c b/board/esd/cpci405/flash.c
index 85a9edc..02de050 100644
--- a/board/esd/cpci405/flash.c
+++ b/board/esd/cpci405/flash.c
@@ -86,11 +86,11 @@ unsigned long flash_init (void)
/* Re-do sizing to get full correct info */
if (size_b1) {
- base_b1 = -size_b1;
if (size_b1 < (1 << 20)) {
/* minimum CS size on PPC405GP is 1MB !!! */
size_b1 = 1 << 20;
}
+ base_b1 = -size_b1;
mtdcr (ebccfga, pb0cr);
pbcr = mfdcr (ebccfgd);
mtdcr (ebccfga, pb0cr);
@@ -103,11 +103,11 @@ unsigned long flash_init (void)
}
if (size_b0) {
- base_b0 = base_b1 - size_b0;
if (size_b0 < (1 << 20)) {
/* minimum CS size on PPC405GP is 1MB !!! */
size_b0 = 1 << 20;
}
+ base_b0 = base_b1 - size_b0;
mtdcr (ebccfga, pb1cr);
pbcr = mfdcr (ebccfgd);
mtdcr (ebccfga, pb1cr);