AGESA fam15tn fam15rl fam16kb: Add OemInitMid()
Change-Id: Icbad42168ec3afb7780c0c2ddc17aa405e08d693 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7825 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
6e74b2cbac
commit
296696d697
|
@ -149,6 +149,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -196,6 +196,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -222,6 +222,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -149,6 +149,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -197,6 +197,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -143,6 +143,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -195,6 +195,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -195,6 +195,14 @@ static AGESA_STATUS OemInitEarly(AMD_EARLY_PARAMS * InitEarly)
|
|||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
static AGESA_STATUS OemInitMid(AMD_MID_PARAMS * InitMid)
|
||||
{
|
||||
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
InitMid->GnbMidConfiguration.iGpuVgaMode = 0;
|
||||
return AGESA_SUCCESS;
|
||||
}
|
||||
|
||||
const struct OEM_HOOK OemCustomize = {
|
||||
.InitEarly = OemInitEarly,
|
||||
.InitMid = OemInitMid,
|
||||
};
|
||||
|
|
|
@ -64,6 +64,9 @@ struct OEM_HOOK
|
|||
/* romstage */
|
||||
AGESA_STATUS (*InitEarly)(AMD_EARLY_PARAMS *);
|
||||
AGESA_STATUS (*InitPost)(AMD_POST_PARAMS *);
|
||||
|
||||
/* ramstage */
|
||||
AGESA_STATUS (*InitMid)(AMD_MID_PARAMS *);
|
||||
};
|
||||
|
||||
extern const struct OEM_HOOK OemCustomize;
|
||||
|
@ -80,4 +83,10 @@ static inline void OemCustomizeInitPost(AMD_POST_PARAMS *PostParams)
|
|||
OemCustomize.InitPost(PostParams);
|
||||
}
|
||||
|
||||
static inline void OemCustomizeInitMid(AMD_MID_PARAMS *MidParams)
|
||||
{
|
||||
if (OemCustomize.InitMid)
|
||||
OemCustomize.InitMid(MidParams);
|
||||
}
|
||||
|
||||
#endif /* _AGESAWRAPPER_H_ */
|
||||
|
|
|
@ -157,8 +157,8 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
|||
AmdParamStruct.StdHeader.ImageBasePtr = 0;
|
||||
|
||||
AmdCreateStruct(&AmdParamStruct);
|
||||
OemCustomizeInitMid((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr);
|
||||
|
||||
((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr)->GnbMidConfiguration.iGpuVgaMode = 0; /* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
status = AmdInitMid((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr);
|
||||
AGESA_EVENTLOG(status, &AmdParamStruct.StdHeader);
|
||||
AmdReleaseStruct(&AmdParamStruct);
|
||||
|
|
|
@ -157,8 +157,8 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
|||
AmdParamStruct.StdHeader.ImageBasePtr = 0;
|
||||
|
||||
AmdCreateStruct(&AmdParamStruct);
|
||||
OemCustomizeInitMid((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr);
|
||||
|
||||
((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr)->GnbMidConfiguration.iGpuVgaMode = 0; /* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
status = AmdInitMid((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr);
|
||||
AGESA_EVENTLOG(status, &AmdParamStruct.StdHeader);
|
||||
AmdReleaseStruct(&AmdParamStruct);
|
||||
|
|
|
@ -157,8 +157,8 @@ AGESA_STATUS agesawrapper_amdinitmid(void)
|
|||
AmdParamStruct.StdHeader.ImageBasePtr = 0;
|
||||
|
||||
AmdCreateStruct(&AmdParamStruct);
|
||||
OemCustomizeInitMid((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr);
|
||||
|
||||
((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr)->GnbMidConfiguration.iGpuVgaMode = 0; /* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
|
||||
status = AmdInitMid((AMD_MID_PARAMS *) AmdParamStruct.NewStructPtr);
|
||||
AGESA_EVENTLOG(status, &AmdParamStruct.StdHeader);
|
||||
AmdReleaseStruct(&AmdParamStruct);
|
||||
|
|
Loading…
Reference in New Issue