public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] MC9328MXL/1 SDRAM initialization
@ 2006-01-13  9:47 llandre
  2006-01-13 10:29 ` Paolo Broggini
  0 siblings, 1 reply; 3+ messages in thread
From: llandre @ 2006-01-13  9:47 UTC (permalink / raw)
  To: u-boot

I have a question about how MC9328MXL/1 initializes SDRAM memories.
These is the instructions used to set up the Mode Command Register (file 
board/mx1ads/lowlevel_init.S) for MX1ADS evalutaion board:

/* Issue Mode Register Command		*/
	ldr  r3, =0x08111800 	/* Mode Register Value 		*/
	ldr  r2, [r3]


In my understanding address lines are connected as follows:

SDRAM -> MC9328MXL
-------------------
A12 -> A13
A11 -> A12
A10 -> MA11
A9  -> MA10
A8  -> A10
A7  -> A9
A6  -> A8
A5  -> A7
A4  -> A6
A2  -> A5
A1  -> A3
A0  -> A2

Thus, when writing to address 0x08111800, microprocessor address lines 
from A8 to A6 are set to 0. It implies that SDRAM address lines from A6 
to A4 are set to 0. These lines are decoded by the SDRAM chips as CAS 
latency. Allowed values are 010 (CAS latency = 2) and 011 (CAS latency = 
3). The value 000 is reserved. So I think I'm misunderstanding how the 
SDRAM controller works. Anybody can help me?

Thanks in advance,
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2 at dave-tech.it

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

* [U-Boot-Users] MC9328MXL/1 SDRAM initialization
  2006-01-13  9:47 [U-Boot-Users] MC9328MXL/1 SDRAM initialization llandre
@ 2006-01-13 10:29 ` Paolo Broggini
  2006-01-13 11:51   ` llandre
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Broggini @ 2006-01-13 10:29 UTC (permalink / raw)
  To: u-boot

llandre ha scritto:
> I have a question about how MC9328MXL/1 initializes SDRAM memories.
> These is the instructions used to set up the Mode Command Register (file 
> board/mx1ads/lowlevel_init.S) for MX1ADS evalutaion board:
> 
> /* Issue Mode Register Command        */
>     ldr  r3, =0x08111800     /* Mode Register Value         */
>     ldr  r2, [r3]
> 

> Thus, when writing to address 0x08111800, microprocessor address lines 
> from A8 to A6 are set to 0. It implies that SDRAM address lines from A6 
> to A4 are set to 0. These lines are decoded by the SDRAM chips as CAS 
> latency. Allowed values are 010 (CAS latency = 2) and 011 (CAS latency = 
> 3). The value 000 is reserved.
No,

  So I think I'm misunderstanding how the
> SDRAM controller works. 
Yes, it is the way SDRAM controller "translates" the linear address in raw and col.
See the Freescale's application note AN2478

Best regards,
-Paolo

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

* [U-Boot-Users] MC9328MXL/1 SDRAM initialization
  2006-01-13 10:29 ` Paolo Broggini
@ 2006-01-13 11:51   ` llandre
  0 siblings, 0 replies; 3+ messages in thread
From: llandre @ 2006-01-13 11:51 UTC (permalink / raw)
  To: u-boot

Paolo,

thanks a lot for your precious advice.

BR
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2 at dave-tech.it


> Yes, it is the way SDRAM controller "translates" the linear address in 
> raw and col.
> See the Freescale's application note AN2478
> 
> Best regards,
> -Paolo
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 

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

end of thread, other threads:[~2006-01-13 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-13  9:47 [U-Boot-Users] MC9328MXL/1 SDRAM initialization llandre
2006-01-13 10:29 ` Paolo Broggini
2006-01-13 11:51   ` llandre

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