soc/intel/tigerlake: 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: I12497d46e58aae41ec8dcb5d567267579dc12fc6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72041
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Dinesh Gehlot 2023-01-17 05:57:56 +00:00 committed by Elyes Haouas
parent 8a2c904616
commit 3e866812e9
9 changed files with 12 additions and 14 deletions

View File

@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <intelblocks/gpio.h> #include <gpio.h>
#include <soc/gpio_defs.h>
#include <soc/intel/common/acpi/gpio.asl> #include <soc/intel/common/acpi/gpio.asl>
#include <soc/intel/common/block/acpi/acpi/gpio_op.asl> #include <soc/intel/common/block/acpi/acpi/gpio_op.asl>
#include <soc/irq.h> #include <soc/irq.h>

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <intelblocks/gpio.h> #include <gpio.h>
#include <soc/gpio_defs_pch_h.h> #include <soc/gpio_defs_pch_h.h>
#include <soc/intel/common/acpi/gpio.asl> #include <soc/intel/common/acpi/gpio.asl>
#include <soc/intel/common/block/acpi/acpi/gpio_op.asl> #include <soc/intel/common/block/acpi/acpi/gpio_op.asl>

View File

@ -4,9 +4,9 @@
#include <device/pci.h> #include <device/pci.h>
#include <fsp/api.h> #include <fsp/api.h>
#include <fsp/util.h> #include <fsp/util.h>
#include <gpio.h>
#include <intelblocks/acpi.h> #include <intelblocks/acpi.h>
#include <intelblocks/cfg.h> #include <intelblocks/cfg.h>
#include <intelblocks/gpio.h>
#include <intelblocks/irq.h> #include <intelblocks/irq.h>
#include <intelblocks/itss.h> #include <intelblocks/itss.h>
#include <intelblocks/pcie_rp.h> #include <intelblocks/pcie_rp.h>

View File

@ -5,15 +5,14 @@
#include <drivers/i2c/designware/dw_i2c.h> #include <drivers/i2c/designware/dw_i2c.h>
#include <drivers/intel/gma/gma.h> #include <drivers/intel/gma/gma.h>
#include <gpio.h>
#include <intelblocks/cfg.h> #include <intelblocks/cfg.h>
#include <intelblocks/gpio.h>
#include <intelblocks/gspi.h> #include <intelblocks/gspi.h>
#include <intelblocks/lpc_lib.h> #include <intelblocks/lpc_lib.h>
#include <intelblocks/pcie_rp.h> #include <intelblocks/pcie_rp.h>
#include <intelblocks/power_limit.h> #include <intelblocks/power_limit.h>
#include <intelblocks/tcss.h> #include <intelblocks/tcss.h>
#include <soc/gpe.h> #include <soc/gpe.h>
#include <soc/gpio.h>
#include <soc/pch.h> #include <soc/pch.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/pmc.h> #include <soc/pmc.h>

View File

@ -2,15 +2,15 @@
#include <assert.h> #include <assert.h>
#include <console/console.h> #include <console/console.h>
#include <device/device.h>
#include <cpu/intel/cpu_ids.h> #include <cpu/intel/cpu_ids.h>
#include <device/device.h>
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <device/pci.h> #include <device/pci.h>
#include <device/pci_ids.h> #include <device/pci_ids.h>
#include <fsp/api.h> #include <fsp/api.h>
#include <fsp/ppi/mp_service_ppi.h> #include <fsp/ppi/mp_service_ppi.h>
#include <fsp/util.h> #include <fsp/util.h>
#include <option.h> #include <gpio.h>
#include <intelblocks/cse.h> #include <intelblocks/cse.h>
#include <intelblocks/irq.h> #include <intelblocks/irq.h>
#include <intelblocks/lpss.h> #include <intelblocks/lpss.h>
@ -18,8 +18,8 @@
#include <intelblocks/tcss.h> #include <intelblocks/tcss.h>
#include <intelblocks/xdci.h> #include <intelblocks/xdci.h>
#include <intelpch/lockdown.h> #include <intelpch/lockdown.h>
#include <option.h>
#include <security/vboot/vboot_common.h> #include <security/vboot/vboot_common.h>
#include <soc/gpio.h>
#include <soc/intel/common/vbt.h> #include <soc/intel/common/vbt.h>
#include <soc/lpm.h> #include <soc/lpm.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <intelblocks/gpio.h> #include <gpio.h>
#include <intelblocks/pcr.h> #include <intelblocks/pcr.h>
#include <soc/pcr_ids.h> #include <soc/pcr_ids.h>
#include <soc/pmc.h> #include <soc/pmc.h>

View File

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <intelblocks/gpio.h> #include <gpio.h>
#include <intelblocks/pcr.h> #include <intelblocks/pcr.h>
#include <soc/pcr_ids.h> #include <soc/pcr_ids.h>
#include <soc/pmc.h> #include <soc/pmc.h>

View File

@ -14,17 +14,17 @@
#define __SIMPLE_DEVICE__ #define __SIMPLE_DEVICE__
#include <acpi/acpi_pm.h> #include <acpi/acpi_pm.h>
#include <console/console.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <device/pci_def.h> #include <device/pci_def.h>
#include <console/console.h> #include <gpio.h>
#include <intelblocks/pmclib.h> #include <intelblocks/pmclib.h>
#include <intelblocks/rtc.h> #include <intelblocks/rtc.h>
#include <intelblocks/tco.h> #include <intelblocks/tco.h>
#include <soc/espi.h> #include <soc/espi.h>
#include <soc/gpe.h> #include <soc/gpe.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/pm.h> #include <soc/pm.h>

View File

@ -6,9 +6,9 @@
#include <cpu/x86/msr.h> #include <cpu/x86/msr.h>
#include <device/device.h> #include <device/device.h>
#include <fsp/util.h> #include <fsp/util.h>
#include <gpio.h>
#include <intelblocks/cpulib.h> #include <intelblocks/cpulib.h>
#include <option.h> #include <option.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/msr.h> #include <soc/msr.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>