summaryrefslogtreecommitdiff
path: root/board/sunxi
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2022-09-06 10:36:38 +0100
committerAndre Przywara <andre.przywara@arm.com>2023-10-22 23:40:57 +0100
commit207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46 (patch)
treec01ced06673d3eeaf767156e608cd75bf06b5765 /board/sunxi
parent30097ee3d23182aef08ff6eaf4a235eb8c365815 (diff)
downloadu-boot-207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46.tar.gz
u-boot-207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46.tar.bz2
u-boot-207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46.zip
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>
Diffstat (limited to 'board/sunxi')
-rw-r--r--board/sunxi/board.c1
-rw-r--r--board/sunxi/chip.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c
index 5cfb33468e..7a1c708b9f 100644
--- a/board/sunxi/board.c
+++ b/board/sunxi/board.c
@@ -38,6 +38,7 @@
#include <asm/armv7.h>
#endif
#include <asm/gpio.h>
+#include <sunxi_gpio.h>
#include <asm/io.h>
#include <u-boot/crc.h>
#include <env_internal.h>
diff --git a/board/sunxi/chip.c b/board/sunxi/chip.c
index cde04bebe9..eeee6319e7 100644
--- a/board/sunxi/chip.c
+++ b/board/sunxi/chip.c
@@ -12,7 +12,7 @@
#include <w1-eeprom.h>
#include <dm/device-internal.h>
-#include <asm/arch/gpio.h>
+#include <sunxi_gpio.h>
#include <extension_board.h>