[U-Boot-Users] MC9328MXL/1 SDRAM initialization

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@dave-tech.it

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

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@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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (2)
-
llandre
-
Paolo Broggini