]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/mcc200/mcc200.c
Fix error in flash protection calculation on MCC200 board.
[karo-tx-uboot.git] / board / mcc200 / mcc200.c
index b9b9a712b8343740b56e23274ca54da0c339bd76..6e2d564c5bc228af47dffa9d1b8f3358855586d2 100644 (file)
@@ -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);
        }