1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <northbridge/amd/agesa/BiosCallOuts.h>
5 #include <northbridge/amd/agesa/state_machine.h>
7 #include <vendorcode/amd/agesa/f15tn/Proc/Fch/FchPlatform.h>
9 const BIOS_CALLOUT_STRUCT BiosCallouts
[] =
11 {AGESA_DO_RESET
, agesa_Reset
},
12 {AGESA_READ_SPD
, agesa_ReadSpd
},
13 {AGESA_READ_SPD_RECOVERY
, agesa_NoopUnsupported
},
14 {AGESA_RUNFUNC_ONAP
, agesa_RunFuncOnAp
},
15 {AGESA_GET_IDS_INIT_DATA
, agesa_EmptyIdsInitData
},
16 {AGESA_HOOKBEFORE_DQS_TRAINING
, agesa_NoopSuccess
},
17 {AGESA_HOOKBEFORE_EXIT_SELF_REF
, agesa_NoopSuccess
},
18 {AGESA_GNB_GFX_GET_VBIOS_IMAGE
, agesa_GfxGetVbiosImage
}
20 const int BiosCalloutsLen
= ARRAY_SIZE(BiosCallouts
);
23 * MSI MS-7721 board ALC887-VD Verb Table
25 * Copied from `/sys/class/sound/hwC1D3/init_pin_configs` when running
28 const CODEC_ENTRY ms7721_alc887_VerbTbl
[] = {
45 static const CODEC_TBL_LIST CodecTableList
[] =
47 {0x10ec0887, (CODEC_ENTRY
*)&ms7721_alc887_VerbTbl
[0]},
48 {(UINT32
)0x0FFFFFFFF, (CODEC_ENTRY
*)0x0FFFFFFFFUL
}
51 void board_FCH_InitReset(struct sysinfo
*cb_NA
, FCH_RESET_DATA_BLOCK
*FchParams_reset
)
53 FchParams_reset
->LegacyFree
= CONFIG(HUDSON_LEGACY_FREE
);
56 void board_FCH_InitEnv(struct sysinfo
*cb_NA
, FCH_DATA_BLOCK
*FchParams_env
)
58 /* Azalia Controller OEM Codec Table Pointer */
59 FchParams_env
->Azalia
.AzaliaOemCodecTablePtr
= (CODEC_TBL_LIST
*)(&CodecTableList
[0]);
62 FchParams_env
->Imc
.ImcEnable
= FALSE
;
63 FchParams_env
->Hwm
.HwMonitorEnable
= FALSE
;
64 FchParams_env
->Hwm
.HwmFchtsiAutoPoll
= FALSE
;/* 1 enable, 0 disable TSI Auto Polling */