]> git.sur5r.net Git - u-boot/commitdiff
85xx: Fix the wrong BCSR address of 8569MDS
authorDave Liu <daveliu@freescale.com>
Fri, 15 May 2009 02:27:44 +0000 (10:27 +0800)
committerWolfgang Denk <wd@denx.de>
Tue, 9 Jun 2009 20:58:32 +0000 (22:58 +0200)
The BCSR17[7] = 1 will unlock the write protect of FLASH.
The WP# pin only controls the write protect of top/bottom sector,
That is why we can save env, but we can't write the first sector
before the patch.

Signed-off-by: Dave Liu <daveliu@freescale.com>
board/freescale/mpc8569mds/bcsr.c

index 5adffc23e3f7323c2ffdbae4aec03fd25d3606bf..f46259726080485d61a020a7c6c36129345ece71 100644 (file)
@@ -27,7 +27,7 @@
 
 void enable_8569mds_flash_write()
 {
-       setbits_8((u8 *)(CONFIG_SYS_BCSR_BASE + 11), BCSR17_FLASH_nWP);
+       setbits_8((u8 *)(CONFIG_SYS_BCSR_BASE + 17), BCSR17_FLASH_nWP);
 }
 
 void disable_8569mds_flash_write()