Skip to contentSkip to conversation

85xx: Fix the wrong BCSR address of 8569MDS

PATCH New Dave Liu 2 participants 2 messages May 15, 2009 – Jun 2, 2009

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 1/1 85xx: Fix the wrong BCSR address of 8569MDS

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.

---
 board/freescale/mpc8569mds/bcsr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
board/freescale/mpc8569mds/bcsr.c +1 -1
index 5adffc2..f462597 100644
@@ -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()
Signature · 1 line
1.5.4
Applied
#1 lore raw

PATCH 1/1 85xx: Fix the wrong BCSR address of 8569MDS

Quoted 6 lines · Dave Liu

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.

Applied to HEAD, thanks!

Andy