mb/google/zork: use gpio.h include

Replace the amdblocks/gpio.h, amdblocks/gpio_defs.h and soc/gpio.h
includes with the common gpio.h which will include soc/gpio.h which will
include amdblocks/gpio.h which will include amdblocks/gpio_defs.h in the
AMD SoC case.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I37a33dd8821a00b7edfd1e5b593f71bea0e77630
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70434
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
This commit is contained in:
Felix Held 2022-12-06 21:24:52 +01:00
parent 2cc2bd2d2f
commit ee2f0b499b
17 changed files with 5 additions and 19 deletions

View File

@ -6,14 +6,12 @@
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include <acpi/acpigen.h> #include <acpi/acpigen.h>
#include <amdblocks/amd_pci_util.h> #include <amdblocks/amd_pci_util.h>
#include <amdblocks/gpio.h>
#include <amdblocks/smi.h> #include <amdblocks/smi.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <boardid.h> #include <boardid.h>
#include <gpio.h> #include <gpio.h>
#include <smbios.h> #include <smbios.h>
#include <soc/cpu.h> #include <soc/cpu.h>
#include <soc/gpio.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>
#include <soc/platform_descriptors.h> #include <soc/platform_descriptors.h>
#include <soc/southbridge.h> #include <soc/southbridge.h>

View File

@ -3,7 +3,6 @@
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <delay.h> #include <delay.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <soc/smi.h> #include <soc/smi.h>
#include <variant/gpio.h> #include <variant/gpio.h>

View File

@ -5,7 +5,6 @@
#include <delay.h> #include <delay.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <soc/smi.h> #include <soc/smi.h>
#include <variant/gpio.h> #include <variant/gpio.h>

View File

@ -4,8 +4,7 @@
#define __BASEBOARD_GPIO_H__ #define __BASEBOARD_GPIO_H__
#ifndef __ACPI__ #ifndef __ACPI__
#include <amdblocks/gpio_defs.h> #include <gpio.h>
#include <soc/gpio.h>
#if CONFIG(BOARD_GOOGLE_BASEBOARD_TREMBYLE) #if CONFIG(BOARD_GOOGLE_BASEBOARD_TREMBYLE)
#define EC_IN_RW_OD GPIO_130 #define EC_IN_RW_OD GPIO_130

View File

@ -9,7 +9,7 @@
#include <drivers/i2c/hid/chip.h> #include <drivers/i2c/hid/chip.h>
#include <drivers/usb/acpi/chip.h> #include <drivers/usb/acpi/chip.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
#include <soc/gpio.h> #include <gpio.h>
#include <soc/iomap.h> #include <soc/iomap.h>
#include <soc/pci_devs.h> #include <soc/pci_devs.h>

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <gpio.h>
#include <security/tpm/tis.h> #include <security/tpm/tis.h>
#include <soc/gpio.h>
#include <variant/gpio.h> #include <variant/gpio.h>
int tis_plat_irq_status(void) int tis_plat_irq_status(void)

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
static const struct soc_amd_gpio berknip_bid1_gpio_set_stage_ram[] = { static const struct soc_amd_gpio berknip_bid1_gpio_set_stage_ram[] = {

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
/* This table is used by dalboz variant with board version < 2. */ /* This table is used by dalboz variant with board version < 2. */

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
static const struct soc_amd_gpio bid_1_gpio_set_stage_ram[] = { static const struct soc_amd_gpio bid_1_gpio_set_stage_ram[] = {

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
static const struct soc_amd_gpio ezkinil_bid1_gpio_set_stage_ram[] = { static const struct soc_amd_gpio ezkinil_bid1_gpio_set_stage_ram[] = {

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
static const struct soc_amd_gpio dirinboz_gpio_set_stage_ram[] = { static const struct soc_amd_gpio dirinboz_gpio_set_stage_ram[] = {
/* PEN_DETECT_ODL - no used */ /* PEN_DETECT_ODL - no used */

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
static const struct soc_amd_gpio morphius_bid1_gpio_set_stage_ram[] = { static const struct soc_amd_gpio morphius_bid1_gpio_set_stage_ram[] = {

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
static const struct soc_amd_gpio bid_gpio_set_stage_ram[] = { static const struct soc_amd_gpio bid_gpio_set_stage_ram[] = {

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
static const struct soc_amd_gpio trembyle_bid1_bid2_gpio_set_stage_ram[] = { static const struct soc_amd_gpio trembyle_bid1_bid2_gpio_set_stage_ram[] = {

View File

@ -3,7 +3,6 @@
#include <baseboard/gpio.h> #include <baseboard/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h> #include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h> #include <ec/google/chromeec/ec.h>
static const struct soc_amd_gpio bid_1_gpio_set_stage_ram[] = { static const struct soc_amd_gpio bid_1_gpio_set_stage_ram[] = {

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <soc/gpio.h> #include <gpio.h>
static const struct soc_amd_gpio woomax_bid0_gpio_set_stage_ram[] = { static const struct soc_amd_gpio woomax_bid0_gpio_set_stage_ram[] = {
/* GPIO_4 NC */ /* GPIO_4 NC */

View File

@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <amdblocks/gpio.h>
#include <baseboard/variants.h> #include <baseboard/variants.h>
#include <gpio.h>
#include <psp_verstage.h> #include <psp_verstage.h>
#include <security/vboot/vboot_common.h> #include <security/vboot/vboot_common.h>