aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-07-10 23:22:43 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-07-10 23:22:43 +0200
commit985b950a9bb1f85d3868e1ff0b1d550fb87c977c (patch)
treeff33822ca3a5bbd5e2bbe2b05baf9cecbf4618c0 /board
parent9d407995516bfcd401b76de0c11e679fb3871c79 (diff)
downloadu-boot-985b950a9bb1f85d3868e1ff0b1d550fb87c977c.zip
u-boot-985b950a9bb1f85d3868e1ff0b1d550fb87c977c.tar.gz
u-boot-985b950a9bb1f85d3868e1ff0b1d550fb87c977c.tar.bz2
Fix error in flash protection calculation on MCC200 board.
Diffstat (limited to 'board')
-rw-r--r--board/mcc200/mcc200.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/mcc200/mcc200.c b/board/mcc200/mcc200.c
index b9b9a71..6e2d564 100644
--- a/board/mcc200/mcc200.c
+++ b/board/mcc200/mcc200.c
@@ -249,7 +249,7 @@ int misc_init_r (void)
*(volatile int*)MPC5XXX_CS0_CFG |= (1 << 6);
flash_protect (FLAG_PROTECT_CLEAR,
flash_info[0].start[0] + flash_info[0].size / 2,
- (flash_info[0].start[0] + flash_info[0].size) / 2 - 1,
+ (flash_info[0].start[0] - 1) + flash_info[0].size,
&flash_info[0]);
*(volatile int*)MPC5XXX_CS0_CFG &= ~(1 << 6);
}