Fam15tn: Move SPD read from mainboards into wrapper
Continuing with the mainboard cleanup for F15tn, move the functions to read the SPD from the mainboards for Thatcher and Parmer into the wrapper for the northbridge/amd/agesa/family15tn. Move the SPD address customization for the mainboard into the devicetree.cb file. Unrelated side note - Porting.h has an un-closed #pragma pack(1) that can cause confusing side-effects. AGESA's structures all use this, but coreboot's don't. Be sure to include the coreboot .h files BEFORE Porting.h is included, not after. This fix has been tested. Change-Id: I89cdd225be61f60c6b8e7020e6f8b879983bbd96 Signed-off-by: Martin Roth <martin.roth@se-eng.com> Reviewed-on: http://review.coreboot.org/2190 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Siyuan Wang <wangsiyuanbuaa@gmail.com>
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
|
||||
#include "agesawrapper.h"
|
||||
#include "amdlib.h"
|
||||
#include "dimmSpd.h"
|
||||
#include "BiosCallOuts.h"
|
||||
#include "Ids.h"
|
||||
#include "OptionsIds.h"
|
||||
@ -33,10 +32,10 @@ STATIC CONST BIOS_CALLOUT_STRUCT BiosCallouts[] =
|
||||
{AGESA_DEALLOCATE_BUFFER, fam15tn_DeallocateBuffer },
|
||||
{AGESA_DO_RESET, fam15tn_Reset },
|
||||
{AGESA_LOCATE_BUFFER, fam15tn_LocateBuffer },
|
||||
{AGESA_READ_SPD, BiosReadSpd },
|
||||
{AGESA_READ_SPD, fam15tn_ReadSpd },
|
||||
{AGESA_READ_SPD_RECOVERY, fam15tn_DefaultRet },
|
||||
{AGESA_RUNFUNC_ONAP, fam15tn_RunFuncOnAp },
|
||||
{AGESA_GET_IDS_INIT_DATA, fam15tn_GetIdsInitData },
|
||||
{AGESA_RUNFUNC_ONAP, fam15tn_RunFuncOnAp },
|
||||
{AGESA_GET_IDS_INIT_DATA, fam15tn_GetIdsInitData },
|
||||
{AGESA_HOOKBEFORE_DQS_TRAINING, fam15tn_HookBeforeDQSTraining },
|
||||
{AGESA_HOOKBEFORE_EXIT_SELF_REF, fam15tn_HookBeforeExitSelfRefresh },
|
||||
{AGESA_FCH_OEM_CALLOUT, Fch_Oem_config },
|
||||
@ -63,14 +62,6 @@ AGESA_STATUS GetBiosCallout (UINT32 Func, UINT32 Data, VOID *ConfigPtr)
|
||||
return CalloutStatus;
|
||||
}
|
||||
|
||||
AGESA_STATUS BiosReadSpd (UINT32 Func, UINT32 Data, VOID *ConfigPtr)
|
||||
{
|
||||
AGESA_STATUS Status;
|
||||
Status = AmdMemoryReadSPD (Func, Data, ConfigPtr);
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
/**
|
||||
* AMD Thatcher Platform ALC272 Verb Table
|
||||
*/
|
||||
|
Reference in New Issue
Block a user