From 8d1ef734a220d2cbb297a4f9485c0364c5a76071 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 6 Dec 2022 21:29:49 +0100 Subject: [PATCH] mb/google/skyrim: 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: Ib982e338b5c6bc145ec1a8f6dd75175a42dfb426 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70436 Reviewed-by: Eric Lai Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/mainboard/google/skyrim/ec.c | 2 +- src/mainboard/google/skyrim/port_descriptors.c | 2 +- src/mainboard/google/skyrim/variants/baseboard/gpio.c | 2 +- .../google/skyrim/variants/baseboard/include/baseboard/ec.h | 1 + .../google/skyrim/variants/baseboard/include/baseboard/gpio.h | 1 + .../skyrim/variants/baseboard/include/baseboard/variants.h | 2 +- src/mainboard/google/skyrim/variants/baseboard/smihandler.c | 2 +- src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c | 2 +- src/mainboard/google/skyrim/variants/frostflow/gpio.c | 2 +- src/mainboard/google/skyrim/variants/winterhold/gpio.c | 2 +- src/mainboard/google/skyrim/verstage.c | 2 +- 11 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/mainboard/google/skyrim/ec.c b/src/mainboard/google/skyrim/ec.c index 05994eb4c2..f265cbf229 100644 --- a/src/mainboard/google/skyrim/ec.c +++ b/src/mainboard/google/skyrim/ec.c @@ -1,10 +1,10 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include -#include #include #include #include +#include #include #include diff --git a/src/mainboard/google/skyrim/port_descriptors.c b/src/mainboard/google/skyrim/port_descriptors.c index c7b1a8b211..3af2d858fc 100644 --- a/src/mainboard/google/skyrim/port_descriptors.c +++ b/src/mainboard/google/skyrim/port_descriptors.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include -#include +#include #include #include diff --git a/src/mainboard/google/skyrim/variants/baseboard/gpio.c b/src/mainboard/google/skyrim/variants/baseboard/gpio.c index 2e265d18eb..d17f8e0f56 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/gpio.c +++ b/src/mainboard/google/skyrim/variants/baseboard/gpio.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include /* GPIO configuration in ramstage*/ static const struct soc_amd_gpio base_gpio_table[] = { diff --git a/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/ec.h b/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/ec.h index b8b466b6a8..4c02c59d00 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/ec.h +++ b/src/mainboard/google/skyrim/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/skyrim/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/gpio.h index dbbb85d19c..66a8362e90 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/gpio.h +++ b/src/mainboard/google/skyrim/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/skyrim/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/variants.h index 4d71c5cc5c..f2cd76bbe5 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/skyrim/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/skyrim/variants/baseboard/smihandler.c b/src/mainboard/google/skyrim/variants/baseboard/smihandler.c index dcc19f3623..0243747da7 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/smihandler.c +++ b/src/mainboard/google/skyrim/variants/baseboard/smihandler.c @@ -1,12 +1,12 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -#include #include #include #include #include #include #include +#include #include void mainboard_smi_sleep(u8 slp_typ) diff --git a/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c b/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c index 0102baa8ce..7e513ef79f 100644 --- a/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c +++ b/src/mainboard/google/skyrim/variants/baseboard/tpm_tis.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include -#include +#include int tis_plat_irq_status(void) { diff --git a/src/mainboard/google/skyrim/variants/frostflow/gpio.c b/src/mainboard/google/skyrim/variants/frostflow/gpio.c index a80693fac6..45ead98f77 100644 --- a/src/mainboard/google/skyrim/variants/frostflow/gpio.c +++ b/src/mainboard/google/skyrim/variants/frostflow/gpio.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include /* GPIO configuration in ramstage */ static const struct soc_amd_gpio override_gpio_table[] = { diff --git a/src/mainboard/google/skyrim/variants/winterhold/gpio.c b/src/mainboard/google/skyrim/variants/winterhold/gpio.c index bed7f4b92f..340bfb6fd2 100644 --- a/src/mainboard/google/skyrim/variants/winterhold/gpio.c +++ b/src/mainboard/google/skyrim/variants/winterhold/gpio.c @@ -2,7 +2,7 @@ #include #include #include -#include +#include /* GPIO configuration in ramstage */ static const struct soc_amd_gpio override_gpio_table[] = { diff --git a/src/mainboard/google/skyrim/verstage.c b/src/mainboard/google/skyrim/verstage.c index 5c176a507f..1079e9b52d 100644 --- a/src/mainboard/google/skyrim/verstage.c +++ b/src/mainboard/google/skyrim/verstage.c @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include -#include #include #include +#include #include #include #include