From b3a411cc7daa4068b2032a9343613dbb55636e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 19 Dec 2020 19:27:12 +0200 Subject: sb,soc/intel: Drop unnecessary headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Files under sb/ or soc/ should not have includes that tie those directly to external components like ChromeEC os ChromeOS vendorcode. Change-Id: Ib56eeedaa9d7422e221efa9c8480ed5e12024bca Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/48765 Reviewed-by: Michael Niewöhner Reviewed-by: Patrick Rudolph Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/lib/coreboot_table.c | 7 ------- src/mainboard/google/butterfly/early_init.c | 3 --- src/soc/intel/baytrail/romstage/raminit.c | 2 -- src/soc/intel/baytrail/romstage/romstage.c | 3 --- src/soc/intel/broadwell/acpi.c | 2 -- src/soc/intel/broadwell/cpu/acpi.c | 2 -- src/soc/intel/broadwell/pch/acpi.c | 2 -- src/soc/intel/broadwell/raminit.c | 5 ----- src/southbridge/intel/bd82x6x/me.c | 4 ---- src/southbridge/intel/bd82x6x/me_8.x.c | 4 ---- 10 files changed, 34 deletions(-) (limited to 'src') diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c index 9e0d589250..d6fd84ae99 100644 --- a/src/lib/coreboot_table.c +++ b/src/lib/coreboot_table.c @@ -27,13 +27,6 @@ #if CONFIG(USE_OPTION_TABLE) #include #endif -#if CONFIG(CHROMEOS) -#if CONFIG(HAVE_ACPI_TABLES) -#include -#endif -#include -#include -#endif #if CONFIG(PLATFORM_USES_FSP2_0) #include #else diff --git a/src/mainboard/google/butterfly/early_init.c b/src/mainboard/google/butterfly/early_init.c index 2ffa3aa5e9..c439fe2e73 100644 --- a/src/mainboard/google/butterfly/early_init.c +++ b/src/mainboard/google/butterfly/early_init.c @@ -7,9 +7,6 @@ #include #include #include -#if CONFIG(CHROMEOS) -#include -#endif void mainboard_late_rcba_config(void) { diff --git a/src/soc/intel/baytrail/romstage/raminit.c b/src/soc/intel/baytrail/romstage/raminit.c index 10ad93298b..f922750a36 100644 --- a/src/soc/intel/baytrail/romstage/raminit.c +++ b/src/soc/intel/baytrail/romstage/raminit.c @@ -17,8 +17,6 @@ #include #include #include -#include -#include #include uintptr_t smbus_base(void) diff --git a/src/soc/intel/baytrail/romstage/romstage.c b/src/soc/intel/baytrail/romstage/romstage.c index 76aa711fc8..b0d380cb6f 100644 --- a/src/soc/intel/baytrail/romstage/romstage.c +++ b/src/soc/intel/baytrail/romstage/romstage.c @@ -6,9 +6,6 @@ #include #include #include -#if CONFIG(EC_GOOGLE_CHROMEEC) -#include -#endif #include #include #include diff --git a/src/soc/intel/broadwell/acpi.c b/src/soc/intel/broadwell/acpi.c index 9b5ac9ef7e..dbaade6945 100644 --- a/src/soc/intel/broadwell/acpi.c +++ b/src/soc/intel/broadwell/acpi.c @@ -14,8 +14,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/src/soc/intel/broadwell/cpu/acpi.c b/src/soc/intel/broadwell/cpu/acpi.c index ec3d588a44..23f674b493 100644 --- a/src/soc/intel/broadwell/cpu/acpi.c +++ b/src/soc/intel/broadwell/cpu/acpi.c @@ -14,8 +14,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/src/soc/intel/broadwell/pch/acpi.c b/src/soc/intel/broadwell/pch/acpi.c index 712bb46f8a..34f9c04562 100644 --- a/src/soc/intel/broadwell/pch/acpi.c +++ b/src/soc/intel/broadwell/pch/acpi.c @@ -14,8 +14,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/src/soc/intel/broadwell/raminit.c b/src/soc/intel/broadwell/raminit.c index 44a89377d4..506c6f6a19 100644 --- a/src/soc/intel/broadwell/raminit.c +++ b/src/soc/intel/broadwell/raminit.c @@ -9,11 +9,6 @@ #include #include #include -#if CONFIG(EC_GOOGLE_CHROMEEC) -#include -#include -#endif -#include #include #include #include diff --git a/src/southbridge/intel/bd82x6x/me.c b/src/southbridge/intel/bd82x6x/me.c index 3876b02306..2adfbd5c98 100644 --- a/src/southbridge/intel/bd82x6x/me.c +++ b/src/southbridge/intel/bd82x6x/me.c @@ -23,10 +23,6 @@ #include "me.h" #include "pch.h" -#if CONFIG(CHROMEOS) -#include -#endif - /* Send END OF POST message to the ME */ static int __unused mkhi_end_of_post(void) { diff --git a/src/southbridge/intel/bd82x6x/me_8.x.c b/src/southbridge/intel/bd82x6x/me_8.x.c index d47c1da6b8..b0226a6e9a 100644 --- a/src/southbridge/intel/bd82x6x/me_8.x.c +++ b/src/southbridge/intel/bd82x6x/me_8.x.c @@ -23,10 +23,6 @@ #include "me.h" #include "pch.h" -#if CONFIG(CHROMEOS) -#include -#endif - /* Send END OF POST message to the ME */ static int __unused mkhi_end_of_post(void) { -- cgit v1.2.3