correct it, finally.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2304 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
6084160f2d
commit
b9a335cb9b
|
@ -81,7 +81,10 @@ static void sdram_set_spd_registers(const struct mem_controller *ctrl)
|
|||
|
||||
/* get the module bank density, SPD byte 31 */
|
||||
/* this is multiples of 8 MB */
|
||||
val = 128 / 8;
|
||||
/* actually it is 2^x*4, where x is the value you put in */
|
||||
/* for OLPC, set default size */
|
||||
/* dimm size - hardcoded 128Mb */
|
||||
val = 5;
|
||||
msr.hi &= ~(0xf << CF07_UPPER_D0_SZ_SHIFT);
|
||||
msr.hi |= (val << CF07_UPPER_D0_SZ_SHIFT);
|
||||
|
||||
|
@ -94,11 +97,6 @@ static void sdram_set_spd_registers(const struct mem_controller *ctrl)
|
|||
print_debug_hex32(msr.hi);
|
||||
print_debug("\r\n");
|
||||
|
||||
/* for OLPC, set default size */
|
||||
/* dimm size - hardcoded 128Mb */
|
||||
// msr.hi &= ~(0xf << CF07_UPPER_D0_SZ_SHIFT);
|
||||
// msr.hi |= (5 << CF07_UPPER_D0_SZ_SHIFT);
|
||||
|
||||
/* this is a standard value, DOES NOT PROBABLY MATCH FROM ABOVE */
|
||||
/* well, it may be close. It's about 200,000 ticks */
|
||||
msr.lo = 0x00003000;
|
||||
|
|
Loading…
Reference in New Issue