From 4ad1446b8333b258110d275c58d17b2d9ebbfa23 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sat, 16 Jun 2018 18:29:33 +0200 Subject: [PATCH] src/mb: Fix non-local header treated as local Also remove some unnedded includes. Change-Id: I036208a111d009620d8354fa9c97688eb4e872ad Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/27129 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/mainboard/advansus/a785e-i/mainboard.c | 2 +- src/mainboard/amd/bettong/BiosCallOuts.c | 4 ++-- src/mainboard/amd/bettong/mptable.c | 2 +- src/mainboard/amd/bimini_fam10/mainboard.c | 4 +--- src/mainboard/amd/mahogany_fam10/mainboard.c | 8 +++----- src/mainboard/amd/olivehill/mptable.c | 3 +-- src/mainboard/amd/parmer/mptable.c | 3 +-- src/mainboard/amd/thatcher/mptable.c | 3 +-- src/mainboard/amd/tilapia_fam10/mainboard.c | 6 ++---- src/mainboard/apple/macbook21/smihandler.c | 4 ++-- .../apple/macbookair4_2/early_southbridge.c | 13 +++---------- src/mainboard/asrock/b75pro3-m/romstage.c | 2 +- src/mainboard/asrock/imb-a180/mptable.c | 3 +-- src/mainboard/asus/f2a85-m/mptable.c | 2 +- src/mainboard/asus/m4a78-em/mainboard.c | 8 +++----- src/mainboard/asus/m4a785-m/mainboard.c | 8 +++----- src/mainboard/asus/m5a88-v/mainboard.c | 4 +--- src/mainboard/asus/p2b-ls/dsdt.asl | 2 +- src/mainboard/asus/p2b/dsdt.asl | 2 +- src/mainboard/asus/p5gc-mx/acpi_tables.c | 2 +- src/mainboard/avalue/eax-785e/mainboard.c | 4 +--- src/mainboard/avalue/eax-785e/romstage.c | 2 +- src/mainboard/biostar/a68n_5200/mptable.c | 3 +-- src/mainboard/compulab/intense_pc/romstage.c | 2 +- src/mainboard/emulation/qemu-q35/acpi_tables.c | 3 +-- src/mainboard/getac/p470/acpi_tables.c | 2 +- src/mainboard/getac/p470/smihandler.c | 4 ++-- src/mainboard/gigabyte/ma785gm/mainboard.c | 8 +++----- src/mainboard/gigabyte/ma785gmt/mainboard.c | 8 +++----- src/mainboard/gigabyte/ma78gm/mainboard.c | 8 +++----- src/mainboard/hp/abm/mptable.c | 3 +-- src/mainboard/hp/compaq_8200_elite_sff/romstage.c | 6 +++--- src/mainboard/iei/kino-780am2-fam10/mainboard.c | 8 +++----- src/mainboard/intel/cougar_canyon2/acpi_tables.c | 3 +-- src/mainboard/intel/cougar_canyon2/gpio.h | 2 +- src/mainboard/intel/dcp847ske/early_southbridge.c | 2 +- src/mainboard/intel/dg41wv/acpi_tables.c | 3 +-- src/mainboard/intel/emeraldlake2/acpi_tables.c | 3 +-- src/mainboard/intel/stargo2/gpio.h | 2 +- src/mainboard/jetway/pa78vm5/mainboard.c | 8 +++----- src/mainboard/lenovo/s230u/romstage.c | 11 +++-------- src/mainboard/lenovo/t400/acpi_tables.c | 4 +--- src/mainboard/lenovo/t400/dock.c | 2 +- src/mainboard/lenovo/t60/dock.c | 3 +-- src/mainboard/lenovo/t60/smihandler.c | 4 ++-- src/mainboard/lenovo/x200/acpi_tables.c | 3 +-- src/mainboard/lenovo/x200/dock.c | 2 +- src/mainboard/lenovo/x201/dock.c | 2 +- src/mainboard/lenovo/x201/smihandler.c | 6 +++--- src/mainboard/lenovo/x60/dock.c | 2 +- src/mainboard/lenovo/x60/smihandler.c | 4 ++-- src/mainboard/lenovo/z61t/dock.c | 3 +-- src/mainboard/lenovo/z61t/smihandler.c | 4 ++-- src/mainboard/msi/ms7721/mptable.c | 2 +- src/mainboard/packardbell/ms2290/smihandler.c | 6 +++--- src/mainboard/pcengines/alix2d/irq_tables.c | 3 +-- src/mainboard/roda/rk9/acpi_tables.c | 3 +-- src/mainboard/samsung/lumpy/acpi_tables.c | 3 +-- src/mainboard/samsung/stumpy/acpi_tables.c | 3 +-- src/mainboard/sapphire/pureplatinumh61/romstage.c | 15 ++++----------- 60 files changed, 96 insertions(+), 158 deletions(-) diff --git a/src/mainboard/advansus/a785e-i/mainboard.c b/src/mainboard/advansus/a785e-i/mainboard.c index 1381dfa352..4b9f581371 100644 --- a/src/mainboard/advansus/a785e-i/mainboard.c +++ b/src/mainboard/advansus/a785e-i/mainboard.c @@ -21,7 +21,7 @@ #include #include #include -#include "southbridge/amd/rs780/rs780.h" +#include /* GPIO6. */ static void enable_int_gfx(void) diff --git a/src/mainboard/amd/bettong/BiosCallOuts.c b/src/mainboard/amd/bettong/BiosCallOuts.c index d9b9570d06..58d36ae629 100644 --- a/src/mainboard/amd/bettong/BiosCallOuts.c +++ b/src/mainboard/amd/bettong/BiosCallOuts.c @@ -24,8 +24,8 @@ #include "hudson.h" #include #include -#include "northbridge/amd/pi/dimmSpd.h" -#include "northbridge/amd/pi/agesawrapper.h" +#include +#include #include static AGESA_STATUS Fch_Oem_config(UINT32 Func, UINTN FchData, VOID *ConfigPtr); diff --git a/src/mainboard/amd/bettong/mptable.c b/src/mainboard/amd/bettong/mptable.c index c50c254a6a..5a06fe7020 100644 --- a/src/mainboard/amd/bettong/mptable.c +++ b/src/mainboard/amd/bettong/mptable.c @@ -22,7 +22,7 @@ #include #include #include -#include "southbridge/amd/pi/hudson/hudson.h" +#include #include static void smp_add_mpc_entry(struct mp_config_table *mc, unsigned length) diff --git a/src/mainboard/amd/bimini_fam10/mainboard.c b/src/mainboard/amd/bimini_fam10/mainboard.c index 3fa2405739..572405d56d 100644 --- a/src/mainboard/amd/bimini_fam10/mainboard.c +++ b/src/mainboard/amd/bimini_fam10/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include #include #include -#include "southbridge/amd/rs780/rs780.h" +#include /* GPIO6. */ static void enable_int_gfx(void) diff --git a/src/mainboard/amd/mahogany_fam10/mainboard.c b/src/mainboard/amd/mahogany_fam10/mainboard.c index a4a26e026c..9c357f9750 100644 --- a/src/mainboard/amd/mahogany_fam10/mainboard.c +++ b/src/mainboard/amd/mahogany_fam10/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include /* * Mahogany uses GPIO 6 as PCIe slot reset, GPIO4 as GFX slot reset. We need to diff --git a/src/mainboard/amd/olivehill/mptable.c b/src/mainboard/amd/olivehill/mptable.c index 89881f770c..443f55155b 100644 --- a/src/mainboard/amd/olivehill/mptable.c +++ b/src/mainboard/amd/olivehill/mptable.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[0x54] = { 0x03,0x04,0x05,0x07,0x0B,0x0A,0x1F,0x1F,0xFA,0xF1,0x00,0x00,0x1F,0x1F,0x1F,0x1F, diff --git a/src/mainboard/amd/parmer/mptable.c b/src/mainboard/amd/parmer/mptable.c index bbbeb62eb1..e916a24f9d 100644 --- a/src/mainboard/amd/parmer/mptable.c +++ b/src/mainboard/amd/parmer/mptable.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[0x54] = { 0x1F,0x1f,0x1f,0x1F,0x1F,0x1F,0x1F,0x1F,0x0A,0xF1,0x00,0x00,0x1F,0x1F,0x1F,0x1F, diff --git a/src/mainboard/amd/thatcher/mptable.c b/src/mainboard/amd/thatcher/mptable.c index 355cff6e09..06a49d4018 100644 --- a/src/mainboard/amd/thatcher/mptable.c +++ b/src/mainboard/amd/thatcher/mptable.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[] = { 0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x1F,0x0A,0xF1,0x00,0x00,0x1F,0x1F,0x1F,0x1F, diff --git a/src/mainboard/amd/tilapia_fam10/mainboard.c b/src/mainboard/amd/tilapia_fam10/mainboard.c index 5e112158c2..d4baf8534c 100644 --- a/src/mainboard/amd/tilapia_fam10/mainboard.c +++ b/src/mainboard/amd/tilapia_fam10/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include #include -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include #define ADT7461_ADDRESS 0x4C #define ARA_ADDRESS 0x0C /* Alert Response Address */ diff --git a/src/mainboard/apple/macbook21/smihandler.c b/src/mainboard/apple/macbook21/smihandler.c index b7c2565e81..727dad3878 100644 --- a/src/mainboard/apple/macbook21/smihandler.c +++ b/src/mainboard/apple/macbook21/smihandler.c @@ -17,8 +17,8 @@ #include #include #include -#include "southbridge/intel/i82801gx/nvs.h" -#include "southbridge/intel/i82801gx/i82801gx.h" +#include +#include #include #include diff --git a/src/mainboard/apple/macbookair4_2/early_southbridge.c b/src/mainboard/apple/macbookair4_2/early_southbridge.c index b9cfa2023a..d189ae287c 100644 --- a/src/mainboard/apple/macbookair4_2/early_southbridge.c +++ b/src/mainboard/apple/macbookair4_2/early_southbridge.c @@ -14,20 +14,13 @@ #include #include #include -#include #include #include #include #include -#include -#include -#include -#include "northbridge/intel/sandybridge/sandybridge.h" -#include "northbridge/intel/sandybridge/raminit_native.h" -#include "southbridge/intel/bd82x6x/pch.h" -#include -#include -#include +#include +#include +#include #include void pch_enable_lpc(void) diff --git a/src/mainboard/asrock/b75pro3-m/romstage.c b/src/mainboard/asrock/b75pro3-m/romstage.c index 645fd0800c..050d6c50b3 100644 --- a/src/mainboard/asrock/b75pro3-m/romstage.c +++ b/src/mainboard/asrock/b75pro3-m/romstage.c @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include "northbridge/intel/sandybridge/raminit_native.h" +#include #include #include diff --git a/src/mainboard/asrock/imb-a180/mptable.c b/src/mainboard/asrock/imb-a180/mptable.c index cf987cacd7..04bd054153 100644 --- a/src/mainboard/asrock/imb-a180/mptable.c +++ b/src/mainboard/asrock/imb-a180/mptable.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[0x54] = { diff --git a/src/mainboard/asus/f2a85-m/mptable.c b/src/mainboard/asus/f2a85-m/mptable.c index cf45d94774..a66900b68e 100644 --- a/src/mainboard/asus/f2a85-m/mptable.c +++ b/src/mainboard/asus/f2a85-m/mptable.c @@ -21,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[] = { diff --git a/src/mainboard/asus/m4a78-em/mainboard.c b/src/mainboard/asus/m4a78-em/mainboard.c index 87acc5674c..8a017a0b49 100644 --- a/src/mainboard/asus/m4a78-em/mainboard.c +++ b/src/mainboard/asus/m4a78-em/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include void set_pcie_dereset(void) { diff --git a/src/mainboard/asus/m4a785-m/mainboard.c b/src/mainboard/asus/m4a785-m/mainboard.c index 5acce51969..23ead56fce 100644 --- a/src/mainboard/asus/m4a785-m/mainboard.c +++ b/src/mainboard/asus/m4a785-m/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include #define ADT7461_ADDRESS 0x4C #define ARA_ADDRESS 0x0C /* Alert Response Address */ diff --git a/src/mainboard/asus/m5a88-v/mainboard.c b/src/mainboard/asus/m5a88-v/mainboard.c index 75f231e74b..2eef74ffca 100644 --- a/src/mainboard/asus/m5a88-v/mainboard.c +++ b/src/mainboard/asus/m5a88-v/mainboard.c @@ -17,11 +17,9 @@ #include #include #include -#include -#include #include #include -#include "southbridge/amd/rs780/rs780.h" +#include /* GPIO6. */ static void enable_int_gfx(void) diff --git a/src/mainboard/asus/p2b-ls/dsdt.asl b/src/mainboard/asus/p2b-ls/dsdt.asl index 32459a5e8f..304a0f4e7d 100644 --- a/src/mainboard/asus/p2b-ls/dsdt.asl +++ b/src/mainboard/asus/p2b-ls/dsdt.asl @@ -13,7 +13,7 @@ * GNU General Public License for more details. */ -#include "southbridge/intel/i82371eb/i82371eb.h" +#include #define SUPERIO_PNP_BASE 0x3F0 #define SUPERIO_SHOW_UARTA diff --git a/src/mainboard/asus/p2b/dsdt.asl b/src/mainboard/asus/p2b/dsdt.asl index 5ef6bdba50..8ddbf28418 100644 --- a/src/mainboard/asus/p2b/dsdt.asl +++ b/src/mainboard/asus/p2b/dsdt.asl @@ -14,7 +14,7 @@ * GNU General Public License for more details. */ -#include "southbridge/intel/i82371eb/i82371eb.h" +#include #define SUPERIO_PNP_BASE 0x3F0 #define SUPERIO_SHOW_UARTA diff --git a/src/mainboard/asus/p5gc-mx/acpi_tables.c b/src/mainboard/asus/p5gc-mx/acpi_tables.c index ca4cde65dd..3aa5829c9c 100644 --- a/src/mainboard/asus/p5gc-mx/acpi_tables.c +++ b/src/mainboard/asus/p5gc-mx/acpi_tables.c @@ -15,7 +15,7 @@ #include -#include "southbridge/intel/i82801gx/nvs.h" +#include void acpi_create_gnvs(global_nvs_t *gnvs) { diff --git a/src/mainboard/avalue/eax-785e/mainboard.c b/src/mainboard/avalue/eax-785e/mainboard.c index 79564a288f..67536336b5 100644 --- a/src/mainboard/avalue/eax-785e/mainboard.c +++ b/src/mainboard/avalue/eax-785e/mainboard.c @@ -17,11 +17,9 @@ #include #include #include -#include -#include #include #include -#include "southbridge/amd/rs780/rs780.h" +#include /* GPIO6. */ static void enable_int_gfx(void) diff --git a/src/mainboard/avalue/eax-785e/romstage.c b/src/mainboard/avalue/eax-785e/romstage.c index 993d078999..e2ce482cef 100644 --- a/src/mainboard/avalue/eax-785e/romstage.c +++ b/src/mainboard/avalue/eax-785e/romstage.c @@ -45,7 +45,7 @@ #include "spd.h" #include #include -#include "southbridge/amd/sb800/early_setup.c" +#include #include "resourcemap.c" #include "cpu/amd/quadcore/quadcore.c" diff --git a/src/mainboard/biostar/a68n_5200/mptable.c b/src/mainboard/biostar/a68n_5200/mptable.c index 89881f770c..443f55155b 100644 --- a/src/mainboard/biostar/a68n_5200/mptable.c +++ b/src/mainboard/biostar/a68n_5200/mptable.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[0x54] = { 0x03,0x04,0x05,0x07,0x0B,0x0A,0x1F,0x1F,0xFA,0xF1,0x00,0x00,0x1F,0x1F,0x1F,0x1F, diff --git a/src/mainboard/compulab/intense_pc/romstage.c b/src/mainboard/compulab/intense_pc/romstage.c index 58a78d0f90..7e59d95cc9 100644 --- a/src/mainboard/compulab/intense_pc/romstage.c +++ b/src/mainboard/compulab/intense_pc/romstage.c @@ -16,7 +16,7 @@ #include #include #include -#include "northbridge/intel/sandybridge/raminit_native.h" +#include #include #define SIO_PORT 0x164e diff --git a/src/mainboard/emulation/qemu-q35/acpi_tables.c b/src/mainboard/emulation/qemu-q35/acpi_tables.c index 995fa69056..83d25d75c3 100644 --- a/src/mainboard/emulation/qemu-q35/acpi_tables.c +++ b/src/mainboard/emulation/qemu-q35/acpi_tables.c @@ -15,7 +15,6 @@ #include #include -#include #include #include #include @@ -26,7 +25,7 @@ #include "../qemu-i440fx/fw_cfg.h" #include "../qemu-i440fx/acpi.h" -#include "southbridge/intel/i82801ix/nvs.h" +#include void acpi_create_gnvs(global_nvs_t *gnvs) { diff --git a/src/mainboard/getac/p470/acpi_tables.c b/src/mainboard/getac/p470/acpi_tables.c index f84060540e..9458b8fd6f 100644 --- a/src/mainboard/getac/p470/acpi_tables.c +++ b/src/mainboard/getac/p470/acpi_tables.c @@ -25,7 +25,7 @@ #include #include -#include "southbridge/intel/i82801gx/nvs.h" +#include #include "mainboard.h" void acpi_create_gnvs(global_nvs_t *gnvs) diff --git a/src/mainboard/getac/p470/smihandler.c b/src/mainboard/getac/p470/smihandler.c index 2d1a0cd8f5..5a82044661 100644 --- a/src/mainboard/getac/p470/smihandler.c +++ b/src/mainboard/getac/p470/smihandler.c @@ -17,8 +17,8 @@ #include #include #include -#include "southbridge/intel/i82801gx/i82801gx.h" -#include "southbridge/intel/i82801gx/nvs.h" +#include +#include #include #include #include "ec_oem.c" diff --git a/src/mainboard/gigabyte/ma785gm/mainboard.c b/src/mainboard/gigabyte/ma785gm/mainboard.c index 8fbc591c86..4c9799a510 100644 --- a/src/mainboard/gigabyte/ma785gm/mainboard.c +++ b/src/mainboard/gigabyte/ma785gm/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include void set_pcie_dereset(void) { diff --git a/src/mainboard/gigabyte/ma785gmt/mainboard.c b/src/mainboard/gigabyte/ma785gmt/mainboard.c index 8f1dd0a397..de90fda029 100644 --- a/src/mainboard/gigabyte/ma785gmt/mainboard.c +++ b/src/mainboard/gigabyte/ma785gmt/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include #define ADT7461_ADDRESS 0x4C #define ARA_ADDRESS 0x0C /* Alert Response Address */ diff --git a/src/mainboard/gigabyte/ma78gm/mainboard.c b/src/mainboard/gigabyte/ma78gm/mainboard.c index bfd083497e..6b0e229492 100644 --- a/src/mainboard/gigabyte/ma78gm/mainboard.c +++ b/src/mainboard/gigabyte/ma78gm/mainboard.c @@ -18,12 +18,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include /* * ma78gm-us2h uses GPIO 6 as PCIe slot reset, GPIO4 as GFX slot reset. We need to diff --git a/src/mainboard/hp/abm/mptable.c b/src/mainboard/hp/abm/mptable.c index cf987cacd7..04bd054153 100644 --- a/src/mainboard/hp/abm/mptable.c +++ b/src/mainboard/hp/abm/mptable.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[0x54] = { diff --git a/src/mainboard/hp/compaq_8200_elite_sff/romstage.c b/src/mainboard/hp/compaq_8200_elite_sff/romstage.c index 98d5ef4770..2197f2d6fa 100644 --- a/src/mainboard/hp/compaq_8200_elite_sff/romstage.c +++ b/src/mainboard/hp/compaq_8200_elite_sff/romstage.c @@ -23,9 +23,9 @@ #include #include #include -#include "northbridge/intel/sandybridge/sandybridge.h" -#include "northbridge/intel/sandybridge/raminit_native.h" -#include "southbridge/intel/bd82x6x/pch.h" +#include +#include +#include #define SERIAL_DEV PNP_DEV(0x2e, NPCD378_SP2) diff --git a/src/mainboard/iei/kino-780am2-fam10/mainboard.c b/src/mainboard/iei/kino-780am2-fam10/mainboard.c index b0ffef71f2..ad1fdd5761 100644 --- a/src/mainboard/iei/kino-780am2-fam10/mainboard.c +++ b/src/mainboard/iei/kino-780am2-fam10/mainboard.c @@ -17,12 +17,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include /* TODO - Need to find GPIO for PCIE slot. * Kino uses GPIO ? as PCIe slot reset, GPIO? as GFX slot reset. We need to diff --git a/src/mainboard/intel/cougar_canyon2/acpi_tables.c b/src/mainboard/intel/cougar_canyon2/acpi_tables.c index 3de6d3ed27..406184f384 100644 --- a/src/mainboard/intel/cougar_canyon2/acpi_tables.c +++ b/src/mainboard/intel/cougar_canyon2/acpi_tables.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -24,8 +23,8 @@ #include #include #include +#include -#include "southbridge/intel/fsp_bd82x6x/nvs.h" #include "thermal.h" static global_nvs_t *gnvs_; diff --git a/src/mainboard/intel/cougar_canyon2/gpio.h b/src/mainboard/intel/cougar_canyon2/gpio.h index c839a12c3d..b4e3915e70 100644 --- a/src/mainboard/intel/cougar_canyon2/gpio.h +++ b/src/mainboard/intel/cougar_canyon2/gpio.h @@ -17,7 +17,7 @@ #ifndef MAINBOARD_GPIO_H #define MAINBOARD_GPIO_H -#include "southbridge/intel/fsp_bd82x6x/gpio.h" +#include const struct pch_gpio_set1 pch_gpio_set1_mode = { .gpio0 = GPIO_MODE_GPIO, /* SINAI */ diff --git a/src/mainboard/intel/dcp847ske/early_southbridge.c b/src/mainboard/intel/dcp847ske/early_southbridge.c index f33415741f..c4be4d50fd 100644 --- a/src/mainboard/intel/dcp847ske/early_southbridge.c +++ b/src/mainboard/intel/dcp847ske/early_southbridge.c @@ -22,7 +22,7 @@ #include #include #include -#include "northbridge/intel/sandybridge/raminit_native.h" +#include #include "superio.h" #include "thermal.h" diff --git a/src/mainboard/intel/dg41wv/acpi_tables.c b/src/mainboard/intel/dg41wv/acpi_tables.c index d80fb4c343..666bba63e3 100644 --- a/src/mainboard/intel/dg41wv/acpi_tables.c +++ b/src/mainboard/intel/dg41wv/acpi_tables.c @@ -16,8 +16,7 @@ #include #include - -#include "southbridge/intel/i82801gx/nvs.h" +#include void acpi_create_gnvs(global_nvs_t *gnvs) { diff --git a/src/mainboard/intel/emeraldlake2/acpi_tables.c b/src/mainboard/intel/emeraldlake2/acpi_tables.c index 3ef993a3d7..92ded3c6da 100644 --- a/src/mainboard/intel/emeraldlake2/acpi_tables.c +++ b/src/mainboard/intel/emeraldlake2/acpi_tables.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -25,8 +24,8 @@ #include #include #include +#include -#include "southbridge/intel/bd82x6x/nvs.h" #include "thermal.h" static global_nvs_t *gnvs_; diff --git a/src/mainboard/intel/stargo2/gpio.h b/src/mainboard/intel/stargo2/gpio.h index 25ecfeb151..675580b10a 100644 --- a/src/mainboard/intel/stargo2/gpio.h +++ b/src/mainboard/intel/stargo2/gpio.h @@ -17,7 +17,7 @@ #ifndef MAINBOARD_GPIO_H #define MAINBOARD_GPIO_H -#include "southbridge/intel/fsp_i89xx/gpio.h" +#include const struct pch_gpio_set1 pch_gpio_set1_mode = { diff --git a/src/mainboard/jetway/pa78vm5/mainboard.c b/src/mainboard/jetway/pa78vm5/mainboard.c index 9585832ebe..066bd2edff 100644 --- a/src/mainboard/jetway/pa78vm5/mainboard.c +++ b/src/mainboard/jetway/pa78vm5/mainboard.c @@ -18,12 +18,10 @@ #include #include #include -#include -#include #include -#include "southbridge/amd/sb700/sb700.h" -#include "southbridge/amd/sb700/smbus.h" -#include "southbridge/amd/rs780/rs780.h" +#include +#include +#include /* * the board uses GPIO 6 as PCIe slot reset, GPIO4 as GFX slot reset. We need to diff --git a/src/mainboard/lenovo/s230u/romstage.c b/src/mainboard/lenovo/s230u/romstage.c index b83eeaec73..7e002d4715 100644 --- a/src/mainboard/lenovo/s230u/romstage.c +++ b/src/mainboard/lenovo/s230u/romstage.c @@ -17,20 +17,15 @@ #include #include #include -#include #include #include #include #include -#include -#include #include -#include "northbridge/intel/sandybridge/sandybridge.h" -#include "northbridge/intel/sandybridge/raminit_native.h" -#include "southbridge/intel/bd82x6x/pch.h" +#include +#include +#include #include -#include -#include #include "ec.h" #define SPD_LEN 256 diff --git a/src/mainboard/lenovo/t400/acpi_tables.c b/src/mainboard/lenovo/t400/acpi_tables.c index feced93a3f..2893d398f3 100644 --- a/src/mainboard/lenovo/t400/acpi_tables.c +++ b/src/mainboard/lenovo/t400/acpi_tables.c @@ -15,7 +15,6 @@ */ #include -#include #include #include #include @@ -24,8 +23,7 @@ #include #include #include - -#include "southbridge/intel/i82801ix/nvs.h" +#include void acpi_create_gnvs(global_nvs_t *gnvs) { diff --git a/src/mainboard/lenovo/t400/dock.c b/src/mainboard/lenovo/t400/dock.c index 74711e1227..0c6db0b5a1 100644 --- a/src/mainboard/lenovo/t400/dock.c +++ b/src/mainboard/lenovo/t400/dock.c @@ -25,7 +25,7 @@ #include "dock.h" #include -#include "southbridge/intel/i82801ix/i82801ix.h" +#include #include "ec/lenovo/h8/h8.h" #include diff --git a/src/mainboard/lenovo/t60/dock.c b/src/mainboard/lenovo/t60/dock.c index 0e24b95c24..05dd65ef3e 100644 --- a/src/mainboard/lenovo/t60/dock.c +++ b/src/mainboard/lenovo/t60/dock.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include "ec/acpi/ec.h" #include "ec/lenovo/pmh7/pmh7.h" -#include "southbridge/intel/i82801gx/i82801gx.h" +#include #define DLPC_CONTROL 0x164c diff --git a/src/mainboard/lenovo/t60/smihandler.c b/src/mainboard/lenovo/t60/smihandler.c index efb0ac43e9..7707d624c8 100644 --- a/src/mainboard/lenovo/t60/smihandler.c +++ b/src/mainboard/lenovo/t60/smihandler.c @@ -17,8 +17,8 @@ #include #include #include -#include "southbridge/intel/i82801gx/nvs.h" -#include "southbridge/intel/i82801gx/i82801gx.h" +#include +#include #include #include "dock.h" #include "smi.h" diff --git a/src/mainboard/lenovo/x200/acpi_tables.c b/src/mainboard/lenovo/x200/acpi_tables.c index 43a0fc8c83..2893d398f3 100644 --- a/src/mainboard/lenovo/x200/acpi_tables.c +++ b/src/mainboard/lenovo/x200/acpi_tables.c @@ -15,7 +15,6 @@ */ #include -#include #include #include #include @@ -24,8 +23,8 @@ #include #include #include +#include -#include "southbridge/intel/i82801ix/nvs.h" void acpi_create_gnvs(global_nvs_t *gnvs) { memset((void *)gnvs, 0, sizeof(*gnvs)); diff --git a/src/mainboard/lenovo/x200/dock.c b/src/mainboard/lenovo/x200/dock.c index 836ff35c07..5bf2cd3ee6 100644 --- a/src/mainboard/lenovo/x200/dock.c +++ b/src/mainboard/lenovo/x200/dock.c @@ -22,7 +22,7 @@ #include #include #include "dock.h" -#include "southbridge/intel/i82801ix/i82801ix.h" +#include #include "ec/lenovo/h8/h8.h" #include diff --git a/src/mainboard/lenovo/x201/dock.c b/src/mainboard/lenovo/x201/dock.c index 1941ac60f8..a11c7202bd 100644 --- a/src/mainboard/lenovo/x201/dock.c +++ b/src/mainboard/lenovo/x201/dock.c @@ -22,7 +22,7 @@ #include #include #include "dock.h" -#include "southbridge/intel/ibexpeak/pch.h" +#include #include "ec/lenovo/h8/h8.h" #include diff --git a/src/mainboard/lenovo/x201/smihandler.c b/src/mainboard/lenovo/x201/smihandler.c index f00ae0dcdc..93cc2b73dc 100644 --- a/src/mainboard/lenovo/x201/smihandler.c +++ b/src/mainboard/lenovo/x201/smihandler.c @@ -17,9 +17,9 @@ #include #include #include -#include "southbridge/intel/ibexpeak/nvs.h" -#include "southbridge/intel/ibexpeak/pch.h" -#include "southbridge/intel/ibexpeak/me.h" +#include +#include +#include #include #include #include diff --git a/src/mainboard/lenovo/x60/dock.c b/src/mainboard/lenovo/x60/dock.c index c2bed9a087..5b49498a84 100644 --- a/src/mainboard/lenovo/x60/dock.c +++ b/src/mainboard/lenovo/x60/dock.c @@ -20,7 +20,7 @@ #include #include #include "dock.h" -#include "southbridge/intel/i82801gx/i82801gx.h" +#include #include static void dlpc_write_register(int reg, int value) diff --git a/src/mainboard/lenovo/x60/smihandler.c b/src/mainboard/lenovo/x60/smihandler.c index b9f0a577a0..c66474dcc8 100644 --- a/src/mainboard/lenovo/x60/smihandler.c +++ b/src/mainboard/lenovo/x60/smihandler.c @@ -17,8 +17,8 @@ #include #include #include -#include "southbridge/intel/i82801gx/nvs.h" -#include "southbridge/intel/i82801gx/i82801gx.h" +#include +#include #include #include #include diff --git a/src/mainboard/lenovo/z61t/dock.c b/src/mainboard/lenovo/z61t/dock.c index 0e24b95c24..05dd65ef3e 100644 --- a/src/mainboard/lenovo/z61t/dock.c +++ b/src/mainboard/lenovo/z61t/dock.c @@ -14,7 +14,6 @@ * GNU General Public License for more details. */ -#include #include #include #include @@ -22,7 +21,7 @@ #include #include "ec/acpi/ec.h" #include "ec/lenovo/pmh7/pmh7.h" -#include "southbridge/intel/i82801gx/i82801gx.h" +#include #define DLPC_CONTROL 0x164c diff --git a/src/mainboard/lenovo/z61t/smihandler.c b/src/mainboard/lenovo/z61t/smihandler.c index ef5cfc64a2..d98a80957b 100644 --- a/src/mainboard/lenovo/z61t/smihandler.c +++ b/src/mainboard/lenovo/z61t/smihandler.c @@ -17,8 +17,8 @@ #include #include #include -#include "southbridge/intel/i82801gx/nvs.h" -#include "southbridge/intel/i82801gx/i82801gx.h" +#include +#include #include #include "dock.h" #include "smi.h" diff --git a/src/mainboard/msi/ms7721/mptable.c b/src/mainboard/msi/ms7721/mptable.c index cf45d94774..a66900b68e 100644 --- a/src/mainboard/msi/ms7721/mptable.c +++ b/src/mainboard/msi/ms7721/mptable.c @@ -21,7 +21,7 @@ #include #include #include -#include "southbridge/amd/agesa/hudson/hudson.h" +#include u8 picr_data[] = { diff --git a/src/mainboard/packardbell/ms2290/smihandler.c b/src/mainboard/packardbell/ms2290/smihandler.c index eeb55dfdaa..e94b61b310 100644 --- a/src/mainboard/packardbell/ms2290/smihandler.c +++ b/src/mainboard/packardbell/ms2290/smihandler.c @@ -17,9 +17,9 @@ #include #include #include -#include "southbridge/intel/ibexpeak/nvs.h" -#include "southbridge/intel/ibexpeak/pch.h" -#include "southbridge/intel/ibexpeak/me.h" +#include +#include +#include #include #include #include diff --git a/src/mainboard/pcengines/alix2d/irq_tables.c b/src/mainboard/pcengines/alix2d/irq_tables.c index b90903f46f..5b3ae208b5 100644 --- a/src/mainboard/pcengines/alix2d/irq_tables.c +++ b/src/mainboard/pcengines/alix2d/irq_tables.c @@ -14,9 +14,8 @@ */ #include -#include #include -#include "southbridge/amd/cs5536/cs5536.h" +#include /* Platform IRQs */ #define PIRQA 11 diff --git a/src/mainboard/roda/rk9/acpi_tables.c b/src/mainboard/roda/rk9/acpi_tables.c index 1540d735df..b673784559 100644 --- a/src/mainboard/roda/rk9/acpi_tables.c +++ b/src/mainboard/roda/rk9/acpi_tables.c @@ -15,7 +15,6 @@ */ #include -#include #include #include #include @@ -24,8 +23,8 @@ #include #include #include +#include -#include "southbridge/intel/i82801ix/nvs.h" void acpi_create_gnvs(global_nvs_t *gnvs) { memset((void *)gnvs, 0, sizeof(*gnvs)); diff --git a/src/mainboard/samsung/lumpy/acpi_tables.c b/src/mainboard/samsung/lumpy/acpi_tables.c index 65922f3d92..06fa0fd4f1 100644 --- a/src/mainboard/samsung/lumpy/acpi_tables.c +++ b/src/mainboard/samsung/lumpy/acpi_tables.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -28,8 +27,8 @@ #if IS_ENABLED(CONFIG_CHROMEOS) #include #endif +#include -#include "southbridge/intel/bd82x6x/nvs.h" #include "thermal.h" static global_nvs_t *gnvs_; diff --git a/src/mainboard/samsung/stumpy/acpi_tables.c b/src/mainboard/samsung/stumpy/acpi_tables.c index c5ecbea4bb..a518d18892 100644 --- a/src/mainboard/samsung/stumpy/acpi_tables.c +++ b/src/mainboard/samsung/stumpy/acpi_tables.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -25,8 +24,8 @@ #include #include #include +#include -#include "southbridge/intel/bd82x6x/nvs.h" #include "thermal.h" static global_nvs_t *gnvs_; diff --git a/src/mainboard/sapphire/pureplatinumh61/romstage.c b/src/mainboard/sapphire/pureplatinumh61/romstage.c index a20a1f758b..da825a9dc1 100644 --- a/src/mainboard/sapphire/pureplatinumh61/romstage.c +++ b/src/mainboard/sapphire/pureplatinumh61/romstage.c @@ -17,21 +17,14 @@ #include #include #include -#include #include #include #include #include -#include -#include -#include -#include "northbridge/intel/sandybridge/sandybridge.h" -#include "northbridge/intel/sandybridge/raminit_native.h" -#include "southbridge/intel/bd82x6x/pch.h" -#include -#include -#include -#include +#include +#include +#include + void pch_enable_lpc(void) {