From fa0bf5c2a4ad5091deb9ef1ad2c7625c9a7eb7ee Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 6 Dec 2022 21:10:53 +0100 Subject: mb/google/guybrush: use gpio.h include Replace the amdblocks/gpio.h and soc/gpio.h includes with the common gpio.h which will include soc/gpio.h which will include amdblocks/gpio.h in the AMD SoC case. Since baseboard/ec.h and indirectly baseboard/gpio.h files will get included in the DSDT, the soc/gpio.h includes in those aren't replaced with a gpio.h include for now. Signed-off-by: Felix Held Change-Id: Ifa82c10d10e4438b0437b78ddd95b5e823805571 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70435 Reviewed-by: Eric Lai Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/mainboard/google/guybrush/variants/baseboard/gpio.c | 1 - src/mainboard/google/guybrush/variants/baseboard/helpers.c | 2 +- src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h | 1 + .../google/guybrush/variants/baseboard/include/baseboard/gpio.h | 1 + .../google/guybrush/variants/baseboard/include/baseboard/variants.h | 2 +- src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c | 2 +- src/mainboard/google/guybrush/variants/dewatt/gpio.c | 1 - src/mainboard/google/guybrush/variants/guybrush/gpio.c | 1 - src/mainboard/google/guybrush/variants/guybrush/variant.c | 2 +- src/mainboard/google/guybrush/variants/nipperkin/gpio.c | 1 - src/mainboard/google/guybrush/variants/nipperkin/ramstage.c | 2 +- 11 files changed, 7 insertions(+), 9 deletions(-) (limited to 'src/mainboard/google/guybrush/variants') diff --git a/src/mainboard/google/guybrush/variants/baseboard/gpio.c b/src/mainboard/google/guybrush/variants/baseboard/gpio.c index 595f680487..cb56515c27 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/gpio.c +++ b/src/mainboard/google/guybrush/variants/baseboard/gpio.c @@ -4,7 +4,6 @@ #include #include #include -#include /* GPIO configuration in ramstage */ /* Please make sure that *ALL* GPIOs are configured in this table */ diff --git a/src/mainboard/google/guybrush/variants/baseboard/helpers.c b/src/mainboard/google/guybrush/variants/baseboard/helpers.c index fe30e15386..84fe7328fa 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/helpers.c +++ b/src/mainboard/google/guybrush/variants/baseboard/helpers.c @@ -2,7 +2,7 @@ #include #include -#include +#include bool __weak variant_has_pcie_wwan(void) { diff --git a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h index 34e2eddd58..3cbb9ee0f6 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h +++ b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/ec.h @@ -6,6 +6,7 @@ #include #include #include +/* Since this ends up being included in dsdt.asl, can't be included instead */ #include #define MAINBOARD_EC_SCI_EVENTS \ diff --git a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h index 90f4420a59..56552a6d1b 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h +++ b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h @@ -3,6 +3,7 @@ #ifndef __BASEBOARD_GPIO_H__ #define __BASEBOARD_GPIO_H__ +/* Since this ends up being included in dsdt.asl, can't be included instead */ #include /* SPI Write protect */ diff --git a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h index 24c03b0cb3..9f99b9f2a9 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/variants.h @@ -3,7 +3,7 @@ #ifndef __BASEBOARD_VARIANTS_H__ #define __BASEBOARD_VARIANTS_H__ -#include +#include #include #include diff --git a/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c b/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c index aa8eaa0e6a..2f3e426ef9 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c +++ b/src/mainboard/google/guybrush/variants/baseboard/tpm_tis.c @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include +#include #include -#include int tis_plat_irq_status(void) { diff --git a/src/mainboard/google/guybrush/variants/dewatt/gpio.c b/src/mainboard/google/guybrush/variants/dewatt/gpio.c index 571cbb4632..73081ede5b 100644 --- a/src/mainboard/google/guybrush/variants/dewatt/gpio.c +++ b/src/mainboard/google/guybrush/variants/dewatt/gpio.c @@ -3,7 +3,6 @@ #include #include #include -#include /* This table is used by guybrush variant */ static const struct soc_amd_gpio override_ramstage_gpio_table[] = { diff --git a/src/mainboard/google/guybrush/variants/guybrush/gpio.c b/src/mainboard/google/guybrush/variants/guybrush/gpio.c index dcbda20f7f..60013b1a58 100644 --- a/src/mainboard/google/guybrush/variants/guybrush/gpio.c +++ b/src/mainboard/google/guybrush/variants/guybrush/gpio.c @@ -4,7 +4,6 @@ #include #include #include -#include /* This table is used by guybrush variant with board version < 2. */ static const struct soc_amd_gpio bid1_ramstage_gpio_table[] = { diff --git a/src/mainboard/google/guybrush/variants/guybrush/variant.c b/src/mainboard/google/guybrush/variants/guybrush/variant.c index 974e357cd9..394270c7e2 100644 --- a/src/mainboard/google/guybrush/variants/guybrush/variant.c +++ b/src/mainboard/google/guybrush/variants/guybrush/variant.c @@ -3,8 +3,8 @@ #include #include #include -#include #include +#include bool variant_has_pcie_wwan(void) { diff --git a/src/mainboard/google/guybrush/variants/nipperkin/gpio.c b/src/mainboard/google/guybrush/variants/nipperkin/gpio.c index c9f637c739..1c415bf045 100644 --- a/src/mainboard/google/guybrush/variants/nipperkin/gpio.c +++ b/src/mainboard/google/guybrush/variants/nipperkin/gpio.c @@ -4,7 +4,6 @@ #include #include #include -#include /* This table is used by nipperkin variant with board version < 2. */ static const struct soc_amd_gpio bid1_override_gpio_table[] = { diff --git a/src/mainboard/google/guybrush/variants/nipperkin/ramstage.c b/src/mainboard/google/guybrush/variants/nipperkin/ramstage.c index c2f4fbffcd..247c132bf6 100644 --- a/src/mainboard/google/guybrush/variants/nipperkin/ramstage.c +++ b/src/mainboard/google/guybrush/variants/nipperkin/ramstage.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include static void cr50_devtree_update(void) { -- cgit v1.2.3