background image

2

AMD Geode™ LX Processor DDR2 BIOS Porting Guide

46959A - March 2009

Application Note

3.0 Solution

The method for initializing DDR2 memory on the processor
is to insert a CPLD and quick switches in the address and
BA signals. Figure 3-1 shows a block diagram of this
design. During initialization, the Enable signal opens
(default) the switches. BIOS tells the CPLD what pattern to
assert on the BA[n] and A[n] signals. Upon completion,
BIOS tells the CPLD to close the switches, giving control
over BA[n] and A[n] to the processor. Additional physical
and electrical details of the design are beyond the scope of
this document.

3.1

Hardware

This section explains the details of the initialization. First it’s
important to delineate two unique versions of this hardware
technology.

3.1.1

On-DIMM Design

This hardware form-factor has a DDR pin assignment (only
SO-DIMM as of this writing), but contains DDR2 SDRAM
modules, and the CPLD. This type of design will be attrac-
tive for customers wanting to upgrade existing systems.
The only board change required is a lower memory volt-
age.

Because the CPLD is contained on the DIMM assembly,
the only bus available for communication is I2C. The
CPLD’s I2C address is A0/A1 (i.e., the same as DIMM0).
The CPLD also contains the SPD information.

Also note that the CPLD uses CKE as its RESET# signal.
As a result, the list of BIOS changes may require moving
the assertion of CKE (e.g., if the SPD is accessed prior to
CKE). 

3.1.2

On-board Design

This type of system will have the CPLD soldered onto the
motherboard, and will be able to use certain off-the-shelf
(OTS) DDR2 DIMMs. In this case, the CPLD does not con-
tain SPD information.

Because the communication is not limited to I2C, using I/O
to send data to the CPLD simplifies the CPLD design and
speeds up initialization.

The I/O addresses selected for the 

AMD Geode™ LX Pro-

cessor Refresh Reference Design Kit

 (RDK) board are

AC10h and AC11h. This requires a modification to the Vir-
tual PCI portion of the BIOS to identify the I/O range to an
operating system. As of this writing, the CPLD claims a
range of 8 bytes (i.e., AC10h-AC17h).

Figure 3-1. AMD Geode™ LX Processor DDR2 Block Diagram 

AMD Geode™ 

LX Processor

/

CS5536

DDR2

SDRAM

A[13]

A[15:14],
BA[2]

Quick

Switches

A[12:0], BA[1:0]

CPLD

A[12:0], 
BA[1:0]

Enable

I2C

Summary of Contents for Geode LX CS5536

Page 1: ...attern presented on A 15 0 when the command is initiated Note however that A 15 13 0 and BA 2 0 in all cases Software on the LX processor issues LOAD MODE com mands by writing the MC_CF07_DATA registe...

Page 2: ...equired is a lower memory volt age Because the CPLD is contained on the DIMM assembly the only bus available for communication is I2C The CPLD s I2C address is A0 A1 i e the same as DIMM0 The CPLD als...

Page 3: ...command by setting and then clearing the PROG_DRAM bit in the MC_CF07_DATA register AMD also recommends setting the MSR_BA field same register to the desired BA 1 0 levels same procedure as initializi...

Page 4: ...upports 2 or 4 banks but DDR2 devices may support 4 or 8 The Dn_CB fields should be programmed with a 1 to indi cate 4 banks The BIOS should not allow configura tions indicating 8 banks Calculate the...

Page 5: ...CE_PRE bit in the MC_CFCLK_DBUG register to insert the PRE CHARGE ALL Additionally the PRECHARGE ALL command requires that A 10 be set high This presents a minor architectural problem The BIOS will no...

Page 6: ...n in SPD 36 which is new for DDR2 Set SW_EN 1 and BA 1 0 00b In the memory con troller set MSR_BA 00b and PROG_DRAM 1 Then clear PROG_DRAM 10 Issue a LOAD MODE command to EMR 1 with OCD set to Default...

Page 7: ...e memory i e cycle time multiplied by the normal CAS Latency The reason for this restriction is that the LX processor s mem ory controller must operate with a Write Latency of 1 clock DDR2 defines CAS...

Page 8: ...antability fitness for a particular purpose or infringement of any intellectual property right AMD s products are not designed intended authorized or warranted for use as components in systems intende...

Reviews: