soc/intel/braswell: Use common gpio.h include

Replace the intelblocks/gpio.h, soc/gpio.h and soc/gpio_defs.h includes
with the common gpio.h which includes soc/gpio.h which includes
intelblocks/gpio.h which includes soc/gpio_defs.h. This patch also fixes
alphabetic ordering of included headers.

BUG=b:261778357
TEST=Able to build and boot.

Signed-off-by: Dinesh Gehlot <digehlot@google.com>
Change-Id: I55fa5941a9255f60c2aa23b90d16cf342d6f458f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72032
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
Dinesh Gehlot 2023-01-17 05:06:10 +00:00 committed by Elyes Haouas
parent 4da8830c3d
commit ba09eb71c8
6 changed files with 10 additions and 11 deletions

View File

@ -6,8 +6,8 @@
#include <console/console.h> #include <console/console.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <fsp/util.h> #include <fsp/util.h>
#include <gpio.h>
#include <pc80/mc146818rtc.h> #include <pc80/mc146818rtc.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/iosf.h> #include <soc/iosf.h>
#include <soc/lpc.h> #include <soc/lpc.h>

View File

@ -1,10 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
#include <arch/io.h> #include <arch/io.h>
#include <console/console.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <device/pci.h> #include <device/pci.h>
#include <soc/gpio.h> #include <gpio.h>
#include <soc/pm.h> #include <soc/pm.h>
#include <soc/smm.h> #include <soc/smm.h>

View File

@ -1,9 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mmio.h> #include <device/mmio.h>
#include <gpio.h>
#include <console/console.h> #include <console/console.h>
#include <soc/gpio.h> #include <gpio.h>
/* /*
* Return family number and internal pad number in that community by pad number * Return family number and internal pad number in that community by pad number

View File

@ -1,10 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/io.h> #include <arch/io.h>
#include <soc/gpio.h>
#include <soc/pm.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/pm.h>
#define SUSPEND_CYCLE 1 #define SUSPEND_CYCLE 1
#define RESUME_CYCLE 0 #define RESUME_CYCLE 0

View File

@ -10,8 +10,8 @@
#include <device/pci_def.h> #include <device/pci_def.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <fsp/util.h> #include <fsp/util.h>
#include <gpio.h>
#include <intelblocks/acpi_wake_source.h> #include <intelblocks/acpi_wake_source.h>
#include <soc/gpio.h>
#include <soc/lpc.h> #include <soc/lpc.h>
#include <soc/msr.h> #include <soc/msr.h>
#include <soc/pattrs.h> #include <soc/pattrs.h>

View File

@ -2,20 +2,20 @@
#include <arch/hlt.h> #include <arch/hlt.h>
#include <arch/io.h> #include <arch/io.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <console/console.h> #include <console/console.h>
#include <cpu/x86/cache.h> #include <cpu/x86/cache.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <cpu/intel/em64t100_save_state.h> #include <cpu/intel/em64t100_save_state.h>
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <elog.h> #include <elog.h>
#include <gpio.h>
#include <soc/nvs.h> #include <soc/nvs.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/pm.h> #include <soc/pm.h>
#include <spi-generic.h> #include <spi-generic.h>
#include <stdint.h> #include <stdint.h>
#include <soc/gpio.h>
#include <smmstore.h> #include <smmstore.h>
void southbridge_smi_set_eos(void) void southbridge_smi_set_eos(void)