public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] 85xx SPD LAW setup issue?
@ 2006-11-08 10:45 Sam Song
  2006-11-08 17:16 ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Sam Song @ 2006-11-08 10:45 UTC (permalink / raw)
  To: u-boot

Hi,

I found that there is a possible LAW conflict
between SPD and 85xx default settings. 

LAWBAR0 is used for DDR whereas LAWBAR1 for 
PCI1. But SPD initializes DDR LAW as LAWBAR1.

I think it could be a setup mess, right?

diff --git a/cpu/mpc85xx/spd_sdram.c
b/cpu/mpc85xx/spd_sdram.c
index 6da5367..c4d3956 100644
--- a/cpu/mpc85xx/spd_sdram.c
+++ b/cpu/mpc85xx/spd_sdram.c
@@ -1043,12 +1043,12 @@ setup_laws_and_tlbs(unsigned
int memsize
        /*
         * Set up LAWBAR for all of DDR.
         */
-       ecm->lawbar1 = ((CFG_DDR_SDRAM_BASE >> 12) &
0xfffff);
-       ecm->lawar1 = (LAWAR_EN
+       ecm->lawbar0 = ((CFG_DDR_SDRAM_BASE >> 12) &
0xfffff);
+       ecm->lawar0 = (LAWAR_EN
                       | LAWAR_TRGT_IF_DDR
                       | (LAWAR_SIZE & law_size));
-       debug("DDR: LAWBAR1=0x%08x\n", ecm->lawbar1);
-       debug("DDR: LARAR1=0x%08x\n", ecm->lawar1);
+       debug("DDR: LAWBAR0=0x%08x\n", ecm->lawbar0);
+       debug("DDR: LARAR0=0x%08x\n", ecm->lawar0);

        /*
         * Confirm that the requested amount of memory
was mapped.

Best regards,

Sam


		
___________________________________________________________ 
????????-3.5G???20M??? 
http://cn.mail.yahoo.com

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

end of thread, other threads:[~2006-11-10 14:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08 10:45 [U-Boot-Users] 85xx SPD LAW setup issue? Sam Song
2006-11-08 17:16 ` Kumar Gala
2006-11-09  0:12   ` Dan Malek
2006-11-09 16:55   ` Jon Loeliger
2006-11-10  8:17     ` John Traill
2006-11-10 14:01       ` Timur Tabi
2006-11-10 14:20         ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox