Fix the SPD to channel mapping. Please note that there is something wrong with UMA.
authorRudolf Marek <r.marek@assembler.cz>
Tue, 30 Nov 2010 20:18:53 +0000 (20:18 +0000)
committerRudolf Marek <r.marek@assembler.cz>
Tue, 30 Nov 2010 20:18:53 +0000 (20:18 +0000)
Single channel (in slot DDR1 and DDR3) produces strange artefacts on screen (and hang)
Dual Channel (in DDR1 and DDR2 aka blue slot) - works nice
All slots populated - same case as Single channel - must be something wrong with UMA.

Tested with 2x 512MB CAS 2.5 DDR400

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6134 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/mainboard/asrock/939a785gmh/romstage.c

index 6ab8c83156914bbd7e93d1ca6e1bc249f036ad5d..2dd94945afb51460645b664bc63308098ad271e3 100644 (file)
@@ -121,7 +121,7 @@ static void sio_init(void)
 
 void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
 {
-       static const u16 spd_addr[] = { DIMM0, 0, 0, 0, DIMM1, 0, 0, 0, };
+       static const u16 spd_addr[] = { DIMM0, DIMM2, 0, 0, DIMM1, DIMM3, 0, 0, };
        int needs_reset = 0;
        u32 bsp_apicid = 0;
        msr_t msr;