Skip to contentSkip to conversation

MC9328MXL/1 SDRAM initialization

U-Boot-Users llandre 2 participants 3 messages Jan 13, 2006

lore
Share & tools
lore

llandre

author
#0 lore raw

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
#1 lore raw

llandre ha scritto:

Quoted 9 lines

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]
Quoted 5 lines

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

Quoted 1 line

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

author
#2 lore raw

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
Quoted 21 lines

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