From 78b05dfbb26320f4c875e7cd5bcbeb95b2b9d64a Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 11 Nov 2017 19:14:31 -0700 Subject: soc/amd/stoneyridge: Remove direct AGESA header includes All AGESA headers should be included only through agesawrapper.h BUG=b:66818758 TEST=Build gardenia; Build & boot kahlee Change-Id: Iadc516e11148048ed9bf43c7a46827793245027a Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/21716 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/soc/amd/stoneyridge/BiosCallOuts.c | 1 - src/soc/amd/stoneyridge/dimmSpd.c | 5 +---- src/soc/amd/stoneyridge/early_setup.c | 6 +----- src/soc/amd/stoneyridge/imc.c | 6 +----- src/soc/amd/stoneyridge/include/fchec.h | 5 +---- src/soc/amd/stoneyridge/smbus_spd.c | 5 +---- 6 files changed, 5 insertions(+), 23 deletions(-) diff --git a/src/soc/amd/stoneyridge/BiosCallOuts.c b/src/soc/amd/stoneyridge/BiosCallOuts.c index 0686880ca2..9110338aba 100644 --- a/src/soc/amd/stoneyridge/BiosCallOuts.c +++ b/src/soc/amd/stoneyridge/BiosCallOuts.c @@ -20,7 +20,6 @@ #include #include -#include #include #include diff --git a/src/soc/amd/stoneyridge/dimmSpd.c b/src/soc/amd/stoneyridge/dimmSpd.c index f4507d65f8..163779d95f 100644 --- a/src/soc/amd/stoneyridge/dimmSpd.c +++ b/src/soc/amd/stoneyridge/dimmSpd.c @@ -13,14 +13,11 @@ * GNU General Public License for more details. */ +#include #include #include #include #include - -/* warning: Porting.h includes an open #pragma pack(1) */ -#include -#include #include "chip.h" #include diff --git a/src/soc/amd/stoneyridge/early_setup.c b/src/soc/amd/stoneyridge/early_setup.c index ecae7ab62e..ec3baa4d8b 100644 --- a/src/soc/amd/stoneyridge/early_setup.c +++ b/src/soc/amd/stoneyridge/early_setup.c @@ -13,6 +13,7 @@ * GNU General Public License for more details. */ +#include #include #include #include @@ -26,11 +27,6 @@ #include #include -/* vendor includes */ -#include -#include -#include - void configure_stoneyridge_uart(void) { u8 byte, byte2; diff --git a/src/soc/amd/stoneyridge/imc.c b/src/soc/amd/stoneyridge/imc.c index a42a9e0291..4c505df522 100644 --- a/src/soc/amd/stoneyridge/imc.c +++ b/src/soc/amd/stoneyridge/imc.c @@ -15,15 +15,11 @@ #define __SIMPLE_DEVICE__ +#include #include #include #include #include -#include -#include -#include -#include -#include #define VACPI_MMIO_VBASE ((u8 *)ACPI_MMIO_BASE) diff --git a/src/soc/amd/stoneyridge/include/fchec.h b/src/soc/amd/stoneyridge/include/fchec.h index acbc1386a9..e5e9cfd888 100644 --- a/src/soc/amd/stoneyridge/include/fchec.h +++ b/src/soc/amd/stoneyridge/include/fchec.h @@ -16,12 +16,9 @@ #ifndef __AMD_STONEY_FCHEC__ #define __AMD_STONEY_FCHEC__ +#include #include -#include "Porting.h" -#include "AGESA.h" -#include "FchCommonCfg.h" -extern VOID FchECfancontrolservice (IN VOID *FchDataPtr); void agesawrapper_fchecfancontrolservice(void); #endif diff --git a/src/soc/amd/stoneyridge/smbus_spd.c b/src/soc/amd/stoneyridge/smbus_spd.c index 0b0876074f..f5c77c9baa 100644 --- a/src/soc/amd/stoneyridge/smbus_spd.c +++ b/src/soc/amd/stoneyridge/smbus_spd.c @@ -13,12 +13,9 @@ * GNU General Public License for more details. */ +#include #include #include - -/* warning: Porting.h includes an open #pragma pack(1) */ -#include -#include #include #include #include -- cgit v1.2.3