1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <northbridge/amd/agesa/state_machine.h>
4 #include <northbridge/amd/agesa/agesa_helper.h>
8 /* Fields were removed from the structure and we cannot add them back
9 * without new builds of the binaryPI blobs.
11 #if CONFIG(NORTHBRIDGE_AMD_PI_00730F01)
13 #define HAS_ACPI_SRAT TRUE
14 #define HAS_ACPI_SLIT TRUE
16 #define HAS_ACPI_SRAT FALSE
17 #define HAS_ACPI_SLIT FALSE
20 /* We will reference AmdLateParams later to copy ACPI tables. */
21 static AMD_LATE_PARAMS
*AmdLateParams
;
23 void agesawrapper_setlateinitptr(void *Late
)
28 void completion_InitLate(struct sysinfo
*cb
, AMD_LATE_PARAMS
*Late
)
33 void *agesawrapper_getlateinitptr(int pick
)
35 ASSERT(AmdLateParams
!= NULL
);
39 return AmdLateParams
->DmiTable
;
41 return AmdLateParams
->AcpiPState
;
44 return AmdLateParams
->AcpiSrat
;
48 return AmdLateParams
->AcpiSlit
;
51 return AmdLateParams
->AcpiWheaMce
;
53 return AmdLateParams
->AcpiWheaCmc
;
55 return AmdLateParams
->AcpiAlib
;
57 return AmdLateParams
->AcpiIvrs
;
59 return AmdLateParams
->AcpiCrat
;
61 return AmdLateParams
->AcpiCdit
;