soc/amd: Include <gpio.h> instead of <soc/gpio.h>

<gpio.h> chain-include <soc/gpio.h>.

Change-Id: I112e41ad4c7ee638954dfe3f1ddfeb10c138459a
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71807
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
This commit is contained in:
Elyes Haouas 2023-01-14 05:46:25 +01:00
parent 8f2e5c90e4
commit 5e2602ae48
22 changed files with 21 additions and 22 deletions

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
/* see the IOMUX function table for the mapping from GPIO number to GEVENT number */ /* see the IOMUX function table for the mapping from GPIO number to GEVENT number */

View File

@ -3,7 +3,7 @@
#ifndef AMD_CEZANNE_I2C_H #ifndef AMD_CEZANNE_I2C_H
#define AMD_CEZANNE_I2C_H #define AMD_CEZANNE_I2C_H
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
#define GPIO_I2C0_SCL BIT(0) #define GPIO_I2C0_SCL BIT(0)

View File

@ -4,8 +4,8 @@
#include <amdblocks/uart.h> #include <amdblocks/uart.h>
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <gpio.h>
#include <soc/aoac_defs.h> #include <soc/aoac_defs.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <soc/uart.h> #include <soc/uart.h>

View File

@ -2,7 +2,7 @@
#include <acpi/acpigen.h> #include <acpi/acpigen.h>
#include <console/console.h> #include <console/console.h>
#include <soc/gpio.h> #include <gpio.h>
static int acpigen_soc_gpio_op(const char *op, unsigned int gpio_num) static int acpigen_soc_gpio_op(const char *op, unsigned int gpio_num)
{ {

View File

@ -10,7 +10,6 @@
#include <amdblocks/acpimmio.h> #include <amdblocks/acpimmio.h>
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <amdblocks/smi.h> #include <amdblocks/smi.h>
#include <soc/gpio.h>
#include <soc/smi.h> #include <soc/smi.h>
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>

View File

@ -3,7 +3,7 @@
/* TODO: Update for Glinda */ /* TODO: Update for Glinda */
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
/* see the IOMUX function table for the mapping from GPIO number to GEVENT number */ /* see the IOMUX function table for the mapping from GPIO number to GEVENT number */

View File

@ -5,7 +5,7 @@
#ifndef AMD_GLINDA_I2C_H #ifndef AMD_GLINDA_I2C_H
#define AMD_GLINDA_I2C_H #define AMD_GLINDA_I2C_H
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
#define GPIO_I2C0_SCL BIT(0) #define GPIO_I2C0_SCL BIT(0)

View File

@ -6,8 +6,8 @@
#include <amdblocks/uart.h> #include <amdblocks/uart.h>
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <gpio.h>
#include <soc/aoac_defs.h> #include <soc/aoac_defs.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <soc/uart.h> #include <soc/uart.h>

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
/* see the IOMUX function table for the mapping from GPIO number to GEVENT number */ /* see the IOMUX function table for the mapping from GPIO number to GEVENT number */

View File

@ -3,7 +3,7 @@
#ifndef AMD_MENDOCINO_I2C_H #ifndef AMD_MENDOCINO_I2C_H
#define AMD_MENDOCINO_I2C_H #define AMD_MENDOCINO_I2C_H
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
#define GPIO_I2C0_SCL BIT(0) #define GPIO_I2C0_SCL BIT(0)

View File

@ -4,8 +4,8 @@
#include <amdblocks/uart.h> #include <amdblocks/uart.h>
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <gpio.h>
#include <soc/aoac_defs.h> #include <soc/aoac_defs.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <soc/uart.h> #include <soc/uart.h>

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
/* see the IOMUX function table for the mapping from GPIO number to GEVENT number */ /* see the IOMUX function table for the mapping from GPIO number to GEVENT number */

View File

@ -3,7 +3,7 @@
#ifndef AMD_PHOENIX_I2C_H #ifndef AMD_PHOENIX_I2C_H
#define AMD_PHOENIX_I2C_H #define AMD_PHOENIX_I2C_H
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
#define GPIO_I2C0_SCL BIT(0) #define GPIO_I2C0_SCL BIT(0)

View File

@ -4,8 +4,8 @@
#include <amdblocks/uart.h> #include <amdblocks/uart.h>
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <gpio.h>
#include <soc/aoac_defs.h> #include <soc/aoac_defs.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <soc/uart.h> #include <soc/uart.h>

View File

@ -15,6 +15,7 @@
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <gpio.h>
#include <amdblocks/acpimmio.h> #include <amdblocks/acpimmio.h>
#include <amdblocks/acpi.h> #include <amdblocks/acpi.h>
#include <amdblocks/chip.h> #include <amdblocks/chip.h>
@ -24,7 +25,6 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/msr.h> #include <soc/msr.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <soc/gpio.h>
#include <version.h> #include <version.h>
#include "chip.h" #include "chip.h"

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
static const struct soc_amd_event gpio_event_table[] = { static const struct soc_amd_event gpio_event_table[] = {

View File

@ -3,8 +3,8 @@
#ifndef AMD_PICASSO_I2C_H #ifndef AMD_PICASSO_I2C_H
#define AMD_PICASSO_I2C_H #define AMD_PICASSO_I2C_H
#include <gpio.h>
#include <types.h> #include <types.h>
#include <soc/gpio.h>
#define GPIO_I2C2_SCL BIT(2) #define GPIO_I2C2_SCL BIT(2)
#define GPIO_I2C3_SCL BIT(3) #define GPIO_I2C3_SCL BIT(3)

View File

@ -4,8 +4,8 @@
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <amdblocks/uart.h> #include <amdblocks/uart.h>
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <gpio.h>
#include <soc/aoac_defs.h> #include <soc/aoac_defs.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <soc/uart.h> #include <soc/uart.h>

View File

@ -13,6 +13,7 @@
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <device/device.h> #include <device/device.h>
#include <device/pci.h> #include <device/pci.h>
#include <gpio.h>
#include <amdblocks/acpimmio.h> #include <amdblocks/acpimmio.h>
#include <amdblocks/acpi.h> #include <amdblocks/acpi.h>
#include <amdblocks/ioapic.h> #include <amdblocks/ioapic.h>
@ -20,7 +21,6 @@
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>
#include <soc/northbridge.h> #include <soc/northbridge.h>
#include <soc/gpio.h>
#include <version.h> #include <version.h>
unsigned long acpi_fill_madt(unsigned long current) unsigned long acpi_fill_madt(unsigned long current)

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <soc/gpio.h> #include <gpio.h>
#include <types.h> #include <types.h>
static const struct soc_amd_event gpio_event_table[] = { static const struct soc_amd_event gpio_event_table[] = {

View File

@ -3,8 +3,8 @@
#ifndef AMD_STONEYRIDGE_I2C_H #ifndef AMD_STONEYRIDGE_I2C_H
#define AMD_STONEYRIDGE_I2C_H #define AMD_STONEYRIDGE_I2C_H
#include <gpio.h>
#include <types.h> #include <types.h>
#include <soc/gpio.h>
#define GPIO_I2C0_SCL BIT(0) #define GPIO_I2C0_SCL BIT(0)
#define GPIO_I2C1_SCL BIT(1) #define GPIO_I2C1_SCL BIT(1)

View File

@ -3,8 +3,8 @@
#include <amdblocks/gpio.h> #include <amdblocks/gpio.h>
#include <amdblocks/uart.h> #include <amdblocks/uart.h>
#include <commonlib/helpers.h> #include <commonlib/helpers.h>
#include <gpio.h>
#include <soc/aoac_defs.h> #include <soc/aoac_defs.h>
#include <soc/gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <types.h> #include <types.h>