From 985b950a9bb1f85d3868e1ff0b1d550fb87c977c Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Mon, 10 Jul 2006 23:22:43 +0200 Subject: [PATCH] Fix error in flash protection calculation on MCC200 board. --- CHANGELOG | 2 ++ board/mcc200/mcc200.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index d1d1ed39a9..e3ebba64f8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ Changes since U-Boot 1.1.4: ====================================================================== +* Fix error in flash protection calculation on MCC200 board. + * Major PCMCIA Cleanup to make code better readable and maintainable. Notes: - Board-dependend code for RPXLITE and RPXCLASSIC-based boards diff --git a/board/mcc200/mcc200.c b/board/mcc200/mcc200.c index b9b9a712b8..6e2d564c5b 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); } -- 2.25.1