diff options
Diffstat (limited to 'board/esd/cpci405/flash.c')
-rw-r--r-- | board/esd/cpci405/flash.c | 4 |
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); |