]> git.sur5r.net Git - u-boot/commit
ppc4xx: Allow setting a single SPD EEPROM address for DDR2 DIMMs
authorFelix Radensky <felix@embedded-sol.com>
Tue, 19 Jan 2010 19:19:06 +0000 (21:19 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 23 Jan 2010 16:53:22 +0000 (17:53 +0100)
commit57ab8a129dd4121711540e2b976aff882998de51
treeb9e8e83a1814041ee14d8f847768dda8ddf2660b
parent17ab3057bde25208af71326c0ff213d05eadb318
ppc4xx: Allow setting a single SPD EEPROM address for DDR2 DIMMs

On platforms where SPD EEPROM and another EEPROM have adjacent
I2C addresses SPD_EEPROM_ADDRESS should be defined as a single
element array, otherwise DDR2 setup code would fail with the
following error:

ERROR: Unknown DIMM detected in slot 1

However, fixing SPD_EEPROM_ADDRESS would result in another
error:

ERROR: DIMM's DDR1 and DDR2 type can not be mixed.

This happens because initdram() routine does not explicitly
initialize dimm_populated array. This patch fixes the problem.

Signed-off-by: Felix Radensky <felix@embedded-sol.com>
Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/44x_spd_ddr2.c