All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] 85xx: Fix the wrong BCSR address of 8569MDS
@ 2009-05-15  2:27 Dave Liu
  2009-06-02 21:47 ` Andy Fleming
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Liu @ 2009-05-15  2:27 UTC (permalink / raw)
  To: u-boot

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/board/freescale/mpc8569mds/bcsr.c b/board/freescale/mpc8569mds/bcsr.c
index 5adffc2..f462597 100644
--- a/board/freescale/mpc8569mds/bcsr.c
+++ b/board/freescale/mpc8569mds/bcsr.c
@@ -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()
-- 
1.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] 85xx: Fix the wrong BCSR address of 8569MDS
  2009-05-15  2:27 [U-Boot] [PATCH] 85xx: Fix the wrong BCSR address of 8569MDS Dave Liu
@ 2009-06-02 21:47 ` Andy Fleming
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Fleming @ 2009-06-02 21:47 UTC (permalink / raw)
  To: u-boot

On Thu, May 14, 2009 at 9:27 PM, Dave Liu <daveliu@freescale.com> wrote:

> 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>


Applied to HEAD, thanks!

Andy

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-02 21:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-15  2:27 [U-Boot] [PATCH] 85xx: Fix the wrong BCSR address of 8569MDS Dave Liu
2009-06-02 21:47 ` Andy Fleming

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.