HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41329 )
Change subject: src/soc/mediatek: Remove direct 'include <soc/gpio.h>' ......................................................................
src/soc/mediatek: Remove direct 'include <soc/gpio.h>'
Don't directly include <soc/gpio.h>. All code using GPIO features should always and only include <gpio.h>, which should indirectly include the SoC-specific <soc/gpio.h>.
Change-Id: I099c579dcc8f53159410034334b092c7a79cba23 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/soc/mediatek/mt8173/gpio_init.c M src/soc/mediatek/mt8173/spi.c M src/soc/mediatek/mt8183/i2c.c M src/soc/mediatek/mt8183/mt8183.c M src/soc/mediatek/mt8183/spi.c 5 files changed, 5 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/29/41329/1
diff --git a/src/soc/mediatek/mt8173/gpio_init.c b/src/soc/mediatek/mt8173/gpio_init.c index 80652d8..b03de9f 100644 --- a/src/soc/mediatek/mt8173/gpio_init.c +++ b/src/soc/mediatek/mt8173/gpio_init.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <device/mmio.h> -#include <soc/gpio.h> +#include <gpio.h> #include <soc/mipi.h>
/* diff --git a/src/soc/mediatek/mt8173/spi.c b/src/soc/mediatek/mt8173/spi.c index dd5c2ae..02ba28e 100644 --- a/src/soc/mediatek/mt8173/spi.c +++ b/src/soc/mediatek/mt8173/spi.c @@ -5,7 +5,7 @@ #include <spi_flash.h> #include <soc/addressmap.h> #include <soc/flash_controller.h> -#include <soc/gpio.h> +#include <gpio.h> #include <soc/spi.h>
struct mtk_spi_bus spi_bus[SPI_BUS_NUMBER] = { diff --git a/src/soc/mediatek/mt8183/i2c.c b/src/soc/mediatek/mt8183/i2c.c index ec9b797..a8d97e4 100644 --- a/src/soc/mediatek/mt8183/i2c.c +++ b/src/soc/mediatek/mt8183/i2c.c @@ -4,7 +4,7 @@ #include <device/mmio.h> #include <soc/pll.h> #include <soc/i2c.h> -#include <soc/gpio.h> +#include <gpio.h>
#define I2C_CLK_HZ (UNIVPLL_HZ / 20)
diff --git a/src/soc/mediatek/mt8183/mt8183.c b/src/soc/mediatek/mt8183/mt8183.c index 1c34246..4668b7e 100644 --- a/src/soc/mediatek/mt8183/mt8183.c +++ b/src/soc/mediatek/mt8183/mt8183.c @@ -2,7 +2,7 @@
#include <soc/mt8183.h> #include <soc/wdt.h> -#include <soc/gpio.h> +#include <gpio.h>
void mt8183_early_init(void) { diff --git a/src/soc/mediatek/mt8183/spi.c b/src/soc/mediatek/mt8183/spi.c index 87362dc..dd6a5a4 100644 --- a/src/soc/mediatek/mt8183/spi.c +++ b/src/soc/mediatek/mt8183/spi.c @@ -5,7 +5,7 @@ #include <spi_flash.h> #include <soc/addressmap.h> #include <soc/flash_controller.h> -#include <soc/gpio.h> +#include <gpio.h> #include <soc/spi.h>
struct mtk_spi_bus spi_bus[SPI_BUS_NUMBER] = {