]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: Clean up inclusions of asm/arch/gpio.h
authorSamuel Holland <samuel@sholland.org>
Sat, 11 Sep 2021 21:50:47 +0000 (16:50 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Oct 2021 09:46:44 +0000 (10:46 +0100)
As part of migrating to DM_GPIO and DM_PINCTRL, eventually we will
remove the asm/arch/gpio.h header. In preparation, clean up the various
files that include it.

Some files did not contain any GPIO code at all, so this header was
completely unused.

A few files contained only legacy platform-specific GPIO code for
setting up pin muxes. They were left unchanged, as that code will be
completely removed by the DM_PINCTRL migration.

The remaining files contain some combination of DM_GPIO and legacy GPIO
code. For those, switch to including asm/gpio.h (if it wasn't included
already). Right now, this header provides both sets of functions,
because ARCH_SUNXI selects GPIO_EXTRA_HEADER. This will still be the
right header to include once the DM_GPIO migration is complete and
GPIO_EXTRA_HEADER is no longer needed.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
14 files changed:
arch/arm/mach-sunxi/board.c
arch/arm/mach-sunxi/clock.c
arch/arm/mach-sunxi/clock_sun4i.c
board/sunxi/board.c
board/sunxi/gmac.c
drivers/gpio/axp_gpio.c
drivers/gpio/sunxi_gpio.c
drivers/mmc/sunxi_mmc.c
drivers/net/sun8i_emac.c
drivers/power/axp809.c
drivers/power/axp818.c
drivers/usb/musb-new/sunxi.c
drivers/video/sunxi/sunxi_display.c
drivers/video/sunxi/sunxi_lcd.c

index d9b04f75fc42273da449a2a67cf73c8175cffcf7..373cb56db491bddb9958a192a36a643dddaf6e46 100644 (file)
@@ -21,7 +21,6 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/spl.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/timer.h>
index f591affebf7bc1b8ffd3d37db1539c6232703f33..de7e87529887a7c6790a35783fddceba26657777 100644 (file)
@@ -10,7 +10,6 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/prcm.h>
 #include <asm/arch/gtbus.h>
 #include <asm/arch/sys_proto.h>
index 57ee018eaa2bbfe87d08b63de5bdf888d16380ca..471609764d281da62c4f73132405512993f94d56 100644 (file)
@@ -12,7 +12,6 @@
 #include <common.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/sys_proto.h>
 
 #ifdef CONFIG_SPL_BUILD
index 6ba7bf523a6c339d368381e8869d33b341cccd8d..65cb3a6fe311ac578f112d2765be8cd8b878e1f4 100644 (file)
@@ -25,7 +25,6 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/display.h>
 #include <asm/arch/dram.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/mmc.h>
 #include <asm/arch/prcm.h>
 #include <asm/arch/spl.h>
index d8fdf7728e04537f27e4a301bbc1ba12f25eb79b..1fa54ed72de9a7389ec5dfce97b97bf478a4fb5e 100644 (file)
@@ -4,7 +4,6 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
 
 void eth_init_board(void)
 {
index 73058cf40b4b9a8f55d92b19d7627baf76cce526..35585dc8ac9b55157b139ef493ec9a56e752b7be 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include <common.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/pmic_bus.h>
 #include <asm/gpio.h>
 #include <axp_pmic.h>
index c5d73d0a0495cb2c166b69c052d5d142cd8e21f0..bf7d82fbf50373f87771575a480e0310b48468ea 100644 (file)
@@ -14,7 +14,6 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <malloc.h>
-#include <asm/arch/gpio.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <dm/device-internal.h>
index aaab0cf86687e6138c5d9e41098c26461eb40ed1..c170c16d5ab73d19b64e7efca94589390ea4e1e5 100644 (file)
 #include <mmc.h>
 #include <clk.h>
 #include <reset.h>
+#include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/cpu.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/mmc.h>
-#include <asm-generic/gpio.h>
 #include <linux/delay.h>
 
 #ifndef CCM_MMC_CTRL_MODE_SEL_NEW
index a6eb82bd1666c9f3a547914f03539106fa469a0f..2e24d1221414e4305070dd2965fd3c40939ee411 100644 (file)
@@ -14,9 +14,9 @@
 #include <log.h>
 #include <asm/cache.h>
 #include <asm/global_data.h>
+#include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
@@ -31,9 +31,6 @@
 #include <reset.h>
 #include <dt-bindings/pinctrl/sun4i-a10.h>
 #include <wait_bit.h>
-#if CONFIG_IS_ENABLED(DM_GPIO)
-#include <asm-generic/gpio.h>
-#endif
 
 #define MDIO_CMD_MII_BUSY              BIT(0)
 #define MDIO_CMD_MII_WRITE             BIT(1)
index 6323492b66d12960e078a1181ed57420c88fb448..0396502cdb55f3be2174d68ebd6c6faebd1a417b 100644 (file)
@@ -13,7 +13,6 @@
 #include <common.h>
 #include <command.h>
 #include <errno.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
 
index 0531707c8aa710f61d93a562c801b35d317d4ce5..2dc736467bb5fb2929c2d61e65edc973fd5e7a86 100644 (file)
@@ -13,7 +13,6 @@
 #include <common.h>
 #include <command.h>
 #include <errno.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/pmic_bus.h>
 #include <axp_pmic.h>
 
index fea4105f3d10fa44af830e1750393646723864d1..7e62e3fe6ea87fa01af5759e9c43d4fd49c3c170 100644 (file)
@@ -25,8 +25,6 @@
 #include <reset.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
-#include <asm/arch/gpio.h>
-#include <asm-generic/gpio.h>
 #include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/root.h>
index 4361a58cd7e39f752cbac103968e543f48654ddd..128888f7af1366bb07bc2657ca8a0e13bb2ecc36 100644 (file)
@@ -17,7 +17,6 @@
 
 #include <asm/arch/clock.h>
 #include <asm/arch/display.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/lcdc.h>
 #include <asm/arch/pwm.h>
 #include <asm/arch/tve.h>
index 7a9eba1ed42abb9ec25e3bf27a5da9eb25140a22..8b9c3b2bfa95a5bfba37074e57145c7c4597c1b5 100644 (file)
@@ -15,7 +15,6 @@
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/lcdc.h>
-#include <asm/arch/gpio.h>
 #include <asm/global_data.h>
 #include <asm/gpio.h>