[U-Boot] [Patch v3 4/7] Fix address for POST for 85xx with CPM
York Sun
yorksun at freescale.com
Wed Sep 29 00:20:34 CEST 2010
The address used for post_word_load and post_word_store is in the dual port
RAM for processors with CPM.
Signed-off-by: York Sun <yorksun at freescale.com>
---
arch/powerpc/cpu/mpc85xx/commproc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/commproc.c b/arch/powerpc/cpu/mpc85xx/commproc.c
index f0fd1cb..aa75494 100644
--- a/arch/powerpc/cpu/mpc85xx/commproc.c
+++ b/arch/powerpc/cpu/mpc85xx/commproc.c
@@ -188,16 +188,16 @@ m8560_cpm_extcbrg(uint brg, uint rate, uint extclk, int pinsel)
void post_word_store (ulong a)
{
- volatile ulong *save_addr =
- (volatile ulong *)(CONFIG_SYS_IMMR + CPM_POST_WORD_ADDR);
+ volatile ulong *save_addr = (volatile ulong *)
+ (CONFIG_SYS_MPC85xx_CPM_ADDR + CPM_POST_WORD_ADDR);
*save_addr = a;
}
ulong post_word_load (void)
{
- volatile ulong *save_addr =
- (volatile ulong *)(CONFIG_SYS_IMMR + CPM_POST_WORD_ADDR);
+ volatile ulong *save_addr = (volatile ulong *)
+ (CONFIG_SYS_MPC85xx_CPM_ADDR + CPM_POST_WORD_ADDR);
return *save_addr;
}
--
1.7.0.4
More information about the U-Boot
mailing list