src: Get rid of duplicated includes

Change-Id: I252a1cd77bf647477edb7dddadb7e527de872439
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/29582
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
This commit is contained in:
Elyes HAOUAS
2018-11-11 20:52:30 +01:00
committed by Patrick Georgi
parent be11d9369b
commit ead574ed02
89 changed files with 9 additions and 111 deletions

View File

@@ -56,7 +56,6 @@ typedef union _PCI_ADDR {
#include "SbType.h"
#include "AcpiLib.h"
#include "SbDef.h"
#include "AmdSbLib.h"
#include "SbSubFun.h"
#include "platform_cfg.h" /* mainboard specific configuration */
#include <OEM.h> /* platform default configuration */

View File

@@ -32,7 +32,6 @@
#include <cpu/x86/smm.h>
#include <cbmem.h>
#include <string.h>
#include <cpu/x86/smm.h>
#include "pch.h"
#include "nvs.h"
#include <southbridge/intel/common/pciehp.h>

View File

@@ -32,11 +32,9 @@
#include <elog.h>
#include <halt.h>
#ifdef __SMM__
#include <arch/io.h>
#else
# include <device/device.h>
# include <device/pci.h>
#ifndef __SMM__
#include <device/device.h>
#include <device/pci.h>
#endif
#include "me.h"

View File

@@ -32,11 +32,9 @@
#include <elog.h>
#include <halt.h>
#ifdef __SMM__
#include <arch/io.h>
#else
# include <device/device.h>
# include <device/pci.h>
#ifndef __SMM__
#include <device/device.h>
#include <device/pci.h>
#endif
#include "me.h"

View File

@@ -28,7 +28,6 @@
#include "nvs.h"
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <arch/io.h>
#include <southbridge/intel/bd82x6x/me.h>
#include <southbridge/intel/common/gpio.h>
#include <cpu/intel/model_206ax/model_206ax.h>

View File

@@ -37,7 +37,6 @@
#ifdef __SMM__
#include <arch/io.h>
#define pci_read_config_byte(dev, reg, targ)\
*(targ) = pci_read_config8(dev, reg)
#define pci_read_config_word(dev, reg, targ)\
@@ -52,7 +51,6 @@
pci_write_config32(dev, reg, val)
#else /* !__SMM__ */
#include <device/device.h>
#include <device/pci.h>
#define pci_read_config_byte(dev, reg, targ)\
*(targ) = pci_read_config8(dev, reg)
#define pci_read_config_word(dev, reg, targ)\

View File

@@ -22,7 +22,6 @@
#include <device/pci_def.h>
#include <pc80/mc146818rtc.h>
#include <version.h>
#include <device/pci_def.h>
#include "pci_devs.h"
#include "soc.h"

View File

@@ -29,7 +29,6 @@
#include <elog.h>
#include <string.h>
#include <cbmem.h>
#include <arch/acpi.h>
#include <arch/acpigen.h>
#include "soc.h"
#include "irq.h"

View File

@@ -62,7 +62,6 @@ int soc_silicon_type(void);
int soc_silicon_supported(int type, int rev);
void soc_enable(struct device *dev);
#include <arch/acpi.h>
void acpi_fill_in_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt);
#if IS_ENABLED(CONFIG_ELOG)

View File

@@ -29,7 +29,6 @@
static int ich_status_poll(u16 bitmask, int wait_til_set);
#ifdef __SMM__
#include <arch/io.h>
#define pci_read_config_byte(dev, reg, targ)\
*(targ) = pci_read_config8(dev, reg)
#define pci_read_config_word(dev, reg, targ)\

View File

@@ -31,11 +31,9 @@
#include <delay.h>
#include <elog.h>
#ifdef __SMM__
#include <arch/io.h>
#else
# include <device/device.h>
# include <device/pci.h>
#ifndef __SMM__
#include <device/device.h>
#include <device/pci.h>
#endif
#include "me.h"

View File

@@ -34,7 +34,6 @@
*/
#include <northbridge/intel/nehalem/nehalem.h>
#include <southbridge/intel/common/gpio.h>
#include <arch/io.h>
/* While we read PMBASE dynamically in case it changed, let's
* initialize it with a sane value

View File

@@ -33,7 +33,6 @@
#include "nvs.h"
#include "pch.h"
#include <arch/acpigen.h>
#include <cbmem.h>
#include <drivers/intel/gma/i915.h>
#include <southbridge/intel/common/acpi_pirq_gen.h>
#include <southbridge/intel/common/rtc.h>

View File

@@ -174,7 +174,6 @@ void disable_gpe(u32 mask);
#if !defined(__PRE_RAM__) && !defined(__SMM__)
#include <device/device.h>
#include <arch/acpi.h>
#include "chip.h"
void pch_enable(struct device *dev);
void pch_disable_devfn(struct device *dev);

View File

@@ -33,7 +33,6 @@
#include <arch/acpi.h>
#include <stdlib.h>
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
#include <arch/acpi.h>
#include <arch/acpigen.h>
#endif
#include <cpu/amd/powernow.h>