mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
30097ee3d2
commit
207ed0a3dd
17 changed files with 14 additions and 6 deletions
|
@ -1135,7 +1135,6 @@ config ARCH_SUNXI
|
||||||
select DM_MMC if MMC
|
select DM_MMC if MMC
|
||||||
select DM_SCSI if SCSI
|
select DM_SCSI if SCSI
|
||||||
select DM_SERIAL
|
select DM_SERIAL
|
||||||
select GPIO_EXTRA_HEADER
|
|
||||||
select OF_BOARD_SETUP
|
select OF_BOARD_SETUP
|
||||||
select OF_CONTROL
|
select OF_CONTROL
|
||||||
select OF_SEPARATE
|
select OF_SEPARATE
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <serial.h>
|
#include <serial.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
#include <asm/cache.h>
|
#include <asm/cache.h>
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/dram.h>
|
#include <asm/arch/dram.h>
|
||||||
#include <asm/arch/gpio.h>
|
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <hang.h>
|
#include <hang.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
#define SDR_T_CAS (0x2)
|
#define SDR_T_CAS (0x2)
|
||||||
#define SDR_T_RAS (0x8)
|
#define SDR_T_RAS (0x8)
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include <linux/bitops.h>
|
#include <linux/bitops.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
#include <linux/libfdt.h>
|
#include <linux/libfdt.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_OS_BOOT
|
#ifdef CONFIG_SPL_OS_BOOT
|
||||||
#error CONFIG_SPL_OS_BOOT is not supported yet
|
#error CONFIG_SPL_OS_BOOT is not supported yet
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#include <asm/armv7.h>
|
#include <asm/armv7.h>
|
||||||
#endif
|
#endif
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <u-boot/crc.h>
|
#include <u-boot/crc.h>
|
||||||
#include <env_internal.h>
|
#include <env_internal.h>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
#include <w1-eeprom.h>
|
#include <w1-eeprom.h>
|
||||||
#include <dm/device-internal.h>
|
#include <dm/device-internal.h>
|
||||||
|
|
||||||
#include <asm/arch/gpio.h>
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
#include <extension_board.h>
|
#include <extension_board.h>
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include <dm/lists.h>
|
#include <dm/lists.h>
|
||||||
#include <dm/root.h>
|
#include <dm/root.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
static int axp_gpio_set_value(struct udevice *dev, unsigned pin, int val);
|
static int axp_gpio_set_value(struct udevice *dev, unsigned pin, int val);
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* =======================================================================
|
* =======================================================================
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <reset.h>
|
#include <reset.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/cpu.h>
|
#include <asm/arch/cpu.h>
|
||||||
#include <asm/arch/gpio.h>
|
|
||||||
#include <asm/arch/p2wi.h>
|
#include <asm/arch/p2wi.h>
|
||||||
#include <asm/arch/prcm.h>
|
#include <asm/arch/prcm.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
#include <reset.h>
|
#include <reset.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <asm/arch/cpu.h>
|
#include <asm/arch/cpu.h>
|
||||||
#include <asm/arch/gpio.h>
|
|
||||||
#include <asm/arch/prcm.h>
|
#include <asm/arch/prcm.h>
|
||||||
#include <asm/arch/rsb.h>
|
#include <asm/arch/rsb.h>
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <asm/arch/cpu.h>
|
#include <asm/arch/cpu.h>
|
||||||
#include <asm/arch/mmc.h>
|
#include <asm/arch/mmc.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
#ifndef CCM_MMC_CTRL_MODE_SEL_NEW
|
#ifndef CCM_MMC_CTRL_MODE_SEL_NEW
|
||||||
#define CCM_MMC_CTRL_MODE_SEL_NEW 0
|
#define CCM_MMC_CTRL_MODE_SEL_NEW 0
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include <dm/pinctrl.h>
|
#include <dm/pinctrl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <mipi_display.h>
|
#include <mipi_display.h>
|
||||||
#include <asm/arch/gpio.h>
|
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <video.h>
|
#include <video.h>
|
||||||
#include <dm/uclass-internal.h>
|
#include <dm/uclass-internal.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
#include "../videomodes.h"
|
#include "../videomodes.h"
|
||||||
#include "../anx9804.h"
|
#include "../anx9804.h"
|
||||||
#include "../hitachi_tx18d42vm_lcd.h"
|
#include "../hitachi_tx18d42vm_lcd.h"
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include <asm/arch/lcdc.h>
|
#include <asm/arch/lcdc.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
|
#include <sunxi_gpio.h>
|
||||||
|
|
||||||
struct sunxi_lcd_priv {
|
struct sunxi_lcd_priv {
|
||||||
struct display_timing timing;
|
struct display_timing timing;
|
||||||
|
|
Loading…
Reference in a new issue