AGESA boards: Clean up some includes

Change-Id: I84c70aa04ab556a3898d3525f7b9aab85812f61d
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/21475
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Kyösti Mälkki 2017-09-10 06:30:54 +03:00
parent f3ec5ed555
commit f7ca672118
35 changed files with 26 additions and 166 deletions

View File

@ -15,11 +15,7 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <NbPlatform.h> #include <NbPlatform.h>
//#define SMBUS_IO_BASE 0x6000 //#define SMBUS_IO_BASE 0x6000

View File

@ -15,11 +15,7 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h> #include <southbridge/amd/sb800/sb800.h>
#include "SBPLATFORM.h" /* Platfrom Specific Definitions */ #include "SBPLATFORM.h" /* Platfrom Specific Definitions */

View File

@ -15,14 +15,6 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
/********************************************** /**********************************************
* enable the dedicated function in mainboard. * enable the dedicated function in mainboard.

View File

@ -15,15 +15,6 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <arch/acpi.h>
#include <cpu/amd/agesa/s3_resume.h>
#include <northbridge/amd/agesa/state_machine.h>
/************************************************* /*************************************************
* enable the dedicated function in parmer board. * enable the dedicated function in parmer board.

View File

@ -16,15 +16,10 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h>
#include <device/pci_def.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>
#include <southbridge/amd/cimx/cimx_util.h> #include <southbridge/amd/cimx/cimx_util.h>
#include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include "SBPLATFORM.h" #include "SBPLATFORM.h"
#include <southbridge/amd/cimx/sb800/pci_devs.h> #include <southbridge/amd/cimx/sb800/pci_devs.h>
#include <northbridge/amd/agesa/family14/pci_devs.h> #include <northbridge/amd/agesa/family14/pci_devs.h>

View File

@ -14,14 +14,10 @@
*/ */
#include <console/console.h> #include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <southbridge/amd/sb800/sb800.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <delay.h> #include <delay.h>
#include <device/device.h>
#include <southbridge/amd/sb800/sb800.h>
#include "SBPLATFORM.h" /* Platfrom Specific Definitions */ #include "SBPLATFORM.h" /* Platfrom Specific Definitions */

View File

@ -15,15 +15,7 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <arch/acpi.h>
#include <cpu/amd/agesa/s3_resume.h>
#include <northbridge/amd/agesa/state_machine.h>
/************************************************* /*************************************************
* enable the dedicated function in thatcher board. * enable the dedicated function in thatcher board.

View File

@ -15,11 +15,6 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#define ONE_MB 0x100000 #define ONE_MB 0x100000
//#define SMBUS_IO_BASE 0x6000 //#define SMBUS_IO_BASE 0x6000

View File

@ -15,12 +15,8 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h> #include <southbridge/amd/sb800/sb800.h>
#include <cpu/amd/mtrr.h>
#include "SBPLATFORM.h" /* Platfrom Specific Definitions */ #include "SBPLATFORM.h" /* Platfrom Specific Definitions */
void set_pcie_reset(void); void set_pcie_reset(void);

View File

@ -15,11 +15,8 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <southbridge/amd/cimx/cimx_util.h> #include <southbridge/amd/cimx/cimx_util.h>
#include "SBPLATFORM.h" #include "SBPLATFORM.h"

View File

@ -15,14 +15,6 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
/********************************************** /**********************************************
* enable the dedicated function in mainboard. * enable the dedicated function in mainboard.

View File

@ -13,16 +13,9 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <arch/acpi.h>
#include <arch/io.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
/************************************************* /*************************************************
* enable the dedicated function in thatcher board. * enable the dedicated function in thatcher board.

View File

@ -17,18 +17,11 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <arch/acpi.h>
#include <southbridge/amd/agesa/hudson/pci_devs.h> #include <southbridge/amd/agesa/hudson/pci_devs.h>
#include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h> #include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>
#include <northbridge/amd/agesa/family16kb/pci_devs.h> #include <northbridge/amd/agesa/family16kb/pci_devs.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
/*********************************************************** /***********************************************************
* These arrays set up the FCH PCI_INTR registers 0xC00/0xC01. * These arrays set up the FCH PCI_INTR registers 0xC00/0xC01.

View File

@ -18,14 +18,6 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <southbridge/amd/agesa/hudson/pci_devs.h> #include <southbridge/amd/agesa/hudson/pci_devs.h>
#include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h> #include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>

View File

@ -16,15 +16,9 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h>
#include <device/pci_def.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>
#include <southbridge/amd/cimx/cimx_util.h> #include <southbridge/amd/cimx/cimx_util.h>
#include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include "SBPLATFORM.h" #include "SBPLATFORM.h"
#include <southbridge/amd/cimx/sb800/pci_devs.h> #include <southbridge/amd/cimx/sb800/pci_devs.h>
#include <northbridge/amd/agesa/family14/pci_devs.h> #include <northbridge/amd/agesa/family14/pci_devs.h>

View File

@ -14,18 +14,14 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h> #include <console/console.h>
#include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h>
#include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include "SBPLATFORM.h"
#include <delay.h> #include <delay.h>
#include <device/device.h>
#include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h>
#include "SBPLATFORM.h"
void set_pcie_reset(void); void set_pcie_reset(void);
void set_pcie_dereset(void); void set_pcie_dereset(void);

View File

@ -17,18 +17,10 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h>
#include <arch/acpi.h>
#include <southbridge/amd/agesa/hudson/pci_devs.h> #include <southbridge/amd/agesa/hudson/pci_devs.h>
#include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h> #include <southbridge/amd/agesa/hudson/amd_pci_int_defs.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>
#include <northbridge/amd/agesa/family16kb/pci_devs.h> #include <northbridge/amd/agesa/family16kb/pci_devs.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
/*********************************************************** /***********************************************************
* These arrays set up the FCH PCI_INTR registers 0xC00/0xC01. * These arrays set up the FCH PCI_INTR registers 0xC00/0xC01.

View File

@ -16,11 +16,7 @@
#include <console/console.h> #include <console/console.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <arch/io.h>
#include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>
#include <southbridge/amd/agesa/hudson/pci_devs.h> #include <southbridge/amd/agesa/hudson/pci_devs.h>
#include <northbridge/amd/agesa/family16kb/pci_devs.h> #include <northbridge/amd/agesa/family16kb/pci_devs.h>

View File

@ -13,21 +13,15 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include "ec.h" #include "ec.h"
#include <arch/acpi.h> #include <arch/acpi.h>
#include <arch/io.h> #include <arch/io.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/msr.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <southbridge/amd/agesa/hudson/smi.h> #include <southbridge/amd/agesa/hudson/smi.h>
static void pavilion_cold_boot_init(void) static void pavilion_cold_boot_init(void)
{ {
/* Lid SMI is only used in non-ACPI mode; leave it off in S3 resume */ /* Lid SMI is only used in non-ACPI mode; leave it off in S3 resume */

View File

@ -15,15 +15,10 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <arch/acpi.h>
#include <arch/io.h> #include <arch/io.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/msr.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>
#include <southbridge/amd/cimx/sb800/SBPLATFORM.h> #include <southbridge/amd/cimx/sb800/SBPLATFORM.h>

View File

@ -13,21 +13,14 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include "ec.h" #include "ec.h"
#include <arch/acpi.h> #include <arch/acpi.h>
#include <arch/io.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/msr.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <southbridge/amd/agesa/hudson/smi.h> #include <southbridge/amd/agesa/hudson/smi.h>
static void pavilion_cold_boot_init(void) static void pavilion_cold_boot_init(void)
{ {
/* Lid SMI is only used in non-ACPI mode; leave it off in S3 resume */ /* Lid SMI is only used in non-ACPI mode; leave it off in S3 resume */

View File

@ -18,12 +18,9 @@
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h> #include <southbridge/amd/sb800/sb800.h>
#include <arch/acpi.h> #include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include "SBPLATFORM.h" #include "SBPLATFORM.h"
#include "OEM.h" /* SMBUS0_BASE_ADDRESS */ #include "OEM.h" /* SMBUS0_BASE_ADDRESS */
#include <southbridge/amd/cimx/sb800/gpio_oem.h> #include <southbridge/amd/cimx/sb800/gpio_oem.h>

View File

@ -18,12 +18,9 @@
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <southbridge/amd/sb800/sb800.h> #include <southbridge/amd/sb800/sb800.h>
#include <arch/acpi.h> #include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include "SBPLATFORM.h" #include "SBPLATFORM.h"
#include "OEM.h" /* SMBUS0_BASE_ADDRESS */ #include "OEM.h" /* SMBUS0_BASE_ADDRESS */
#include <southbridge/amd/cimx/sb800/gpio_oem.h> #include <southbridge/amd/cimx/sb800/gpio_oem.h>

View File

@ -13,16 +13,9 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <arch/acpi.h>
#include <arch/io.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
/************************************************* /*************************************************
* enable the dedicated function in thatcher board. * enable the dedicated function in thatcher board.

View File

@ -18,13 +18,10 @@
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <southbridge/amd/common/amd_pci_util.h> #include <southbridge/amd/common/amd_pci_util.h>
#include <southbridge/amd/cimx/cimx_util.h> #include <southbridge/amd/cimx/cimx_util.h>
#include <arch/acpi.h> #include <arch/acpi.h>
#include <northbridge/amd/agesa/BiosCallOuts.h>
#include <cpu/amd/mtrr.h>
#include <smbios.h> #include <smbios.h>
#include <string.h> #include <string.h>
#include "SBPLATFORM.h" #include "SBPLATFORM.h"

View File

@ -20,8 +20,6 @@
#include <arch/ioapic.h> #include <arch/ioapic.h>
#include <device/pci.h> #include <device/pci.h>
#include <device/pci_ids.h> #include <device/pci_ids.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <cpu/amd/amdfam16.h> #include <cpu/amd/amdfam16.h>
unsigned long acpi_fill_madt(unsigned long current) unsigned long acpi_fill_madt(unsigned long current)

View File

@ -27,8 +27,6 @@
#include <superio/nuvoton/nct5104d/nct5104d.h> #include <superio/nuvoton/nct5104d/nct5104d.h>
#include <smbios.h> #include <smbios.h>
#include <string.h> #include <string.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include "gpio_ftns.h" #include "gpio_ftns.h"
#define SPD_SIZE 128 #define SPD_SIZE 128

View File

@ -17,8 +17,6 @@
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <NbPlatform.h> #include <NbPlatform.h>

View File

@ -18,8 +18,6 @@
#include <device/pci.h> #include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <boot/tables.h> #include <boot/tables.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <NbPlatform.h> #include <NbPlatform.h>
#include "chip.h" #include "chip.h"

View File

@ -18,8 +18,6 @@
#include <device/pci.h> #include <device/pci.h>
#include <arch/io.h> #include <arch/io.h>
#include <boot/tables.h> #include <boot/tables.h>
#include <cpu/x86/msr.h>
#include <cpu/amd/mtrr.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <NbPlatform.h> #include <NbPlatform.h>
#include "chip.h" #include "chip.h"

View File

@ -16,6 +16,8 @@
#ifndef _AMD_FAM14_PCI_DEVS_H_ #ifndef _AMD_FAM14_PCI_DEVS_H_
#define _AMD_FAM14_PCI_DEVS_H_ #define _AMD_FAM14_PCI_DEVS_H_
#include <device/pci_def.h>
#define BUS0 0 #define BUS0 0
/* Graphics and Display */ /* Graphics and Display */

View File

@ -16,6 +16,8 @@
#ifndef _AMD_FAM15TN_PCI_DEVS_H_ #ifndef _AMD_FAM15TN_PCI_DEVS_H_
#define _AMD_FAM15TN_PCI_DEVS_H_ #define _AMD_FAM15TN_PCI_DEVS_H_
#include <device/pci_def.h>
#define BUS0 0 #define BUS0 0
/* Graphics and Display */ /* Graphics and Display */

View File

@ -16,6 +16,8 @@
#ifndef _AMD_FAM16KB_PCI_DEVS_H_ #ifndef _AMD_FAM16KB_PCI_DEVS_H_
#define _AMD_FAM16KB_PCI_DEVS_H_ #define _AMD_FAM16KB_PCI_DEVS_H_
#include <device/pci_def.h>
#define BUS0 0 #define BUS0 0
/* Graphics and Display */ /* Graphics and Display */

View File

@ -16,6 +16,8 @@
#ifndef _AGESA_HUDSON_PCI_DEVS_H_ #ifndef _AGESA_HUDSON_PCI_DEVS_H_
#define _AGESA_HUDSON_PCI_DEVS_H_ #define _AGESA_HUDSON_PCI_DEVS_H_
#include <device/pci_def.h>
#define BUS0 0 #define BUS0 0
/* XHCI */ /* XHCI */

View File

@ -16,6 +16,8 @@
#ifndef _CIMX_SB800_PCI_DEVS_H_ #ifndef _CIMX_SB800_PCI_DEVS_H_
#define _CIMX_SB800_PCI_DEVS_H_ #define _CIMX_SB800_PCI_DEVS_H_
#include <device/pci_def.h>
#define BUS0 0 #define BUS0 0
/* SATA */ /* SATA */