]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: sunxi: remove GPIO_EXTRA_HEADER
authorAndre Przywara <andre.przywara@arm.com>
Tue, 6 Sep 2022 09:36:38 +0000 (10:36 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:40:57 +0000 (23:40 +0100)
commit207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46
treec01ced06673d3eeaf767156e608cd75bf06b5765
parent30097ee3d23182aef08ff6eaf4a235eb8c365815
pinctrl: sunxi: remove GPIO_EXTRA_HEADER

U-Boot's generic GPIO_EXTRA_HEADER is a convenience symbol to allow code
to more easily include platform specific GPIO headers. This should not
be needed in a DM world anymore, since the generic GPIO framework
handles that nicely.
For Allwinner boards we still need to deal with non-DM GPIO in the SPL,
but this should become the exception, not the rule.

Make this more obvious by removing the definition of GPIO_EXTRA_HEADER,
and just force every legacy user of platform specific GPIO to include
the new sunxi_gpio.h header explicitly. Everyone doing so should feel
ashamed and should find a way to avoid it from now on.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Samuel Holland <samuel@sholland.org>
17 files changed:
arch/arm/Kconfig
arch/arm/mach-sunxi/board.c
arch/arm/mach-sunxi/dram_suniv.c
arch/arm/mach-sunxi/spl_spi_sunxi.c
board/sunxi/board.c
board/sunxi/chip.c
drivers/gpio/axp_gpio.c
drivers/gpio/sunxi_gpio.c
drivers/i2c/sun6i_p2wi.c
drivers/i2c/sun8i_rsb.c
drivers/mmc/sunxi_mmc.c
drivers/pinctrl/sunxi/pinctrl-sunxi.c
drivers/video/hitachi_tx18d42vm_lcd.c
drivers/video/ssd2828.c
drivers/video/sunxi/sunxi_display.c
drivers/video/sunxi/sunxi_lcd.c
include/sunxi_gpio.h [moved from arch/arm/include/asm/arch-sunxi/gpio.h with 100% similarity]