[coreboot] [patch][v2] AMD fam10 rev B3 memory init
Marc Jones
Marc.Jones at amd.com
Wed Jul 23 23:04:37 CEST 2008
Carl-Daniel Hailfinger wrote:
> On 22.07.2008 01:02, Marc Jones wrote:
>> Memory initialization support for AMD Fam10 B3 (B0-B2 already supported).
>>
>> Signed-off-by: Marc Jones <marc.jones at amd.com>
>>
>> Index: coreboot-v2/src/northbridge/amd/amdmct/mct/mct_d.c
>> ===================================================================
>> --- coreboot-v2.orig/src/northbridge/amd/amdmct/mct/mct_d.c 2008-07-21 15:40:02.000000000 -0600
>> +++ coreboot-v2/src/northbridge/amd/amdmct/mct/mct_d.c 2008-07-21 16:14:22.000000000 -0600
>> @@ -2401,30 +2401,34 @@
>> mct_BeforeDramInit_Prod_D(pMCTstat, pDCTstat);
>> // FIXME: for rev A: mct_BeforeDramInit_D(pDCTstat, dct);
>>
>> - /* Disable auto refresh before Dram init when in ganged mode */
>> - if (pDCTstat->GangedMode) {
>> - val = Get_NB32(pDCTstat->dev_dct, 0x8C + (0x100 * dct));
>> - val |= 1 << DisAutoRefresh;
>> - Set_NB32(pDCTstat->dev_dct, 0x8C + (0x100 * dct), val);
>> + /* Disable auto refresh before Dram init when in ganged mode (Erratum 278) */
>> + if (pDCTstat->LogicalCPUID & (AMD_DR_B0 | AMD_DR_B1 | AMD_DR_BA)) {
>>
>
> This is a behaviour change for B2. Before, the code path was taken for
> B2, now it isn't anymore.
>
I don't know if this was missed in the for B2 or if the errata changed.
Anyway, skip the setting less than B2.
> src/northbridge/amd/amdmct/amddefs.h has some nice CPUID combiners like
> AMD_DR_LT_B3. Maybe you can use one of them.
I added a AMD_DR_LT_B2 define.
> With the points above addressed, the patch is
> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
r3433
Thanks,
Marc
--
Marc Jones
Senior Firmware Engineer
(970) 226-9684 Office
mailto:Marc.Jones at amd.com
http://www.amd.com/embeddedprocessors
More information about the coreboot
mailing list