diff options
author | Andre Przywara <andre.przywara@arm.com> | 2022-09-06 10:36:38 +0100 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2023-10-22 23:40:57 +0100 |
commit | 207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46 (patch) | |
tree | c01ced06673d3eeaf767156e608cd75bf06b5765 /drivers/i2c | |
parent | 30097ee3d23182aef08ff6eaf4a235eb8c365815 (diff) | |
download | u-boot-207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46.zip u-boot-207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46.tar.gz u-boot-207ed0a3ddcb23fe0a5e8f83b36e6f039270bc46.tar.bz2 |
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 'drivers/i2c')
-rw-r--r-- | drivers/i2c/sun6i_p2wi.c | 2 | ||||
-rw-r--r-- | drivers/i2c/sun8i_rsb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/sun6i_p2wi.c b/drivers/i2c/sun6i_p2wi.c index d221323..b8e07a5 100644 --- a/drivers/i2c/sun6i_p2wi.c +++ b/drivers/i2c/sun6i_p2wi.c @@ -20,10 +20,10 @@ #include <errno.h> #include <i2c.h> #include <reset.h> +#include <sunxi_gpio.h> #include <time.h> #include <asm/io.h> #include <asm/arch/cpu.h> -#include <asm/arch/gpio.h> #include <asm/arch/p2wi.h> #include <asm/arch/prcm.h> #include <asm/arch/sys_proto.h> diff --git a/drivers/i2c/sun8i_rsb.c b/drivers/i2c/sun8i_rsb.c index 47fa05b..f36f2c7 100644 --- a/drivers/i2c/sun8i_rsb.c +++ b/drivers/i2c/sun8i_rsb.c @@ -14,10 +14,10 @@ #include <dm.h> #include <errno.h> #include <i2c.h> +#include <sunxi_gpio.h> #include <reset.h> #include <time.h> #include <asm/arch/cpu.h> -#include <asm/arch/gpio.h> #include <asm/arch/prcm.h> #include <asm/arch/rsb.h> |