background image

AMD Geode™ LX Processor DDR2 BIOS Porting Guide

3

46959A - March 2009 

Application Note

3.2

CPLD Registers

The CPLD contains two registers that indicate how it
should assert the BA[1:0], A[12:0] signals and switch
enable signals. 

If accessing the registers via I2C, the register addresses 
are 80h and 81h. 

If accessing with I/O, the addresses are AC10h and 
AC11h. 

The two registers are defined in Table 3-1 and 3-2. Instruct-
ing the CPLD to set or clear a signal causes the behavior to
occur immediately on its outputs.

Prior to executing a LOAD MODE command, the BIOS sets
the CPLD registers to the desired pattern. The DRAM reg-
isters are programmed with the A[n] signals. The register
being initialized is determined by the pattern on BA[1:0]
(MR=00b, EMR(1)=01b, EMR(2)=10b and EMR(3)=11b).
Then the BIOS generates the LOAD MODE 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 initializing DDR).

Table 3-1. REG_A Definition

Bit

Name

Description

7

A[7]

Address signal 7. If SW_EN# is high, setting this bit causes the CPLD to assert the A[7] signal. 
This behavior is consistent for all the A[n] and BA[n] fields.

6

A[6]

Address signal 6

5

A[5]

Address signal 5

4

A[4]

Address signal 4

3

A[3]

Address signal 3

2

A[2]

Address signal 2

1

A[1]

Address signal 1

0

A[0]

Address signal 0

Table 3-2. REG_B Definition

Bit

Name

Description

7

SW_EN#

Switch enable. When high, the CPLD asserts all of its A[n] and BA[n] signals, according to the 
current settings in the internal registers. When low, the CPLD closes the switches and tri-states 
its A[n] and BA[n] signals.

6

BA[1]

Bank Address 1

5

BA[0]

Bank Address 0

4

A[12]

Address signal 12

3

A[11]

Address signal 11

2

A[10]

Address signal 10

1

A[9]

Address signal 9

0

A[8]

Address signal 8

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: