From d6ccf4eaa9b3fb95a86bb800460898afbf39d1cb Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Tue, 26 Sep 2017 15:19:59 -0600 Subject: [PATCH] AMD Stoney Ridge: Add agesa_headers.h - Create header files for the stoneyridge PI that pulls in AGESA pi headers and encloses them in #pragma pack push/pop to keep the '#pragma pack(1)' in Porting.h from leaking. - Add that header to agesawrapper.h, replacing AGESA.h and Porting.h Following patches will update the coreboot code to use only agesawrapper.h to pull in the AGESA headers. BUG=b:66818758 TEST=Build tested Change-Id: Ib7d76811c1270ec7ef71266d84f3960919b792d4 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/21713 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/amd/common/agesawrapper.h | 3 +- .../amd/pi/00670F00/agesa_headers.h | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 src/vendorcode/amd/pi/00670F00/agesa_headers.h diff --git a/src/soc/amd/common/agesawrapper.h b/src/soc/amd/common/agesawrapper.h index fff9ea2842..6ddc658981 100644 --- a/src/soc/amd/common/agesawrapper.h +++ b/src/soc/amd/common/agesawrapper.h @@ -17,8 +17,7 @@ #define __AGESAWRAPPER_H__ #include -#include -#include +#include enum { PICK_DMI, /* DMI Interface */ diff --git a/src/vendorcode/amd/pi/00670F00/agesa_headers.h b/src/vendorcode/amd/pi/00670F00/agesa_headers.h new file mode 100644 index 0000000000..d93b73f163 --- /dev/null +++ b/src/vendorcode/amd/pi/00670F00/agesa_headers.h @@ -0,0 +1,33 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2017 Google, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __AGESA_HEADERS_H__ +#define __AGESA_HEADERS_H__ + +#pragma pack(push) +#include +#include "AGESA.h" +#include "AMD.h" + +#include "Proc/Fch/Common/FchCommonCfg.h" +#include "Proc/Fch/Fch.h" +#include "Include/Ids.h" +#include "Include/PlatformMemoryConfiguration.h" +#include "Proc/Fch/FchPlatform.h" +#include "Proc/CPU/heapManager.h" +#include "Proc/Psp/PspBaseLib/PspBaseLib.h" +#pragma pack(pop) + +#endif