mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
99c0ae16d8
This patch add DT support for mxc gpio driver. There are one place using CONFIG_OF_CONTROL macro. 1. The U_BOOT_DEVICES and mxc_plat array are complied out. To DT, platdata is alloced using calloc, so there is no need to use mxc_plat. The following situations are tested, and all work fine: 1. with DM, without DT 2. with DM and DT 3. without DM Since device tree has not been upstreamed, if want to test this patch. The followings need to be done. + pieces of code does not gpio_request when using gpio_direction_xxx and etc, need to request gpio. + move the gpio settings from board_early_init_f to board_init + define CONFIG_DM ,CONFIG_DM_GPIO and CONFIG_OF_CONTROL + Add device tree file and do related configuration in `make ARCH=arm menuconfig` These will be done in future patches by step. Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Acked-by: Igor Grinberg <grinberg@compulab.co.il> Acked-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
adi_gpio2.c | ||
altera_pio.c | ||
at91_gpio.c | ||
bcm2835_gpio.c | ||
da8xx_gpio.c | ||
db8500_gpio.c | ||
gpio-uclass.c | ||
intel_ich6_gpio.c | ||
Kconfig | ||
kona_gpio.c | ||
kw_gpio.c | ||
Makefile | ||
mpc83xx_gpio.c | ||
mvgpio.c | ||
mvgpio.h | ||
mvmfp.c | ||
mxc_gpio.c | ||
mxs_gpio.c | ||
omap_gpio.c | ||
pca953x.c | ||
pca9698.c | ||
s3c2440_gpio.c | ||
s5p_gpio.c | ||
sandbox.c | ||
sh_pfc.c | ||
spear_gpio.c | ||
sunxi_gpio.c | ||
sx151x.c | ||
tca642x.c | ||
tegra_gpio.c | ||
xilinx_gpio.c |