u-boot-2016/drivers/gpio
Peng Fan 99c0ae16d8 dm:gpio:mxc add DT support
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>
2015-02-12 15:17:29 -07:00
..
adi_gpio2.c
altera_pio.c
at91_gpio.c gpio: at91: Fix getting address of private data 2015-02-12 10:35:29 -07:00
bcm2835_gpio.c dm: gpio: rpi_b: Drop request()/free() in the driver 2014-10-23 19:30:51 -06:00
da8xx_gpio.c
db8500_gpio.c
gpio-uclass.c dm: gpio: Add better functions to request GPIOs 2015-01-29 17:09:51 -07:00
intel_ich6_gpio.c x86: ich6-gpio: Add Intel Tunnel Creek GPIO support 2014-12-18 17:26:06 -07:00
Kconfig dm: Expand and complete Kconfig in drivers/ 2015-02-12 10:35:33 -07:00
kona_gpio.c gpio: kona: Add Kona gpio driver 2014-02-22 19:30:27 +01:00
kw_gpio.c gpio: make local functions static 2014-10-25 07:02:01 -04:00
Makefile Merge branch 'u-boot-sunxi/master' into 'u-boot-arm/master' 2014-07-28 10:12:45 +02:00
mpc83xx_gpio.c
mvgpio.c
mvgpio.h
mvmfp.c
mxc_gpio.c dm:gpio:mxc add DT support 2015-02-12 15:17:29 -07:00
mxs_gpio.c
omap_gpio.c gpio: omap: Pass correct argument to _get_gpio_direction() 2015-02-12 10:35:29 -07:00
pca953x.c
pca9698.c
s3c2440_gpio.c
s5p_gpio.c dm: exynos: Add a GPIO translation function 2015-01-29 17:09:51 -07:00
sandbox.c dm: gpio: Add better functions to request GPIOs 2015-01-29 17:09:51 -07:00
sh_pfc.c
spear_gpio.c gpio: spear_gpio: Fix gpio_set_value() implementation 2014-07-04 21:37:29 +02:00
sunxi_gpio.c sunxi: gpio: Add support for gpio pins on the AXP209 pmic 2015-01-14 14:56:38 +01:00
sx151x.c
tca642x.c
tegra_gpio.c dm: tegra: Add a GPIO translation function 2015-01-29 17:09:51 -07:00
xilinx_gpio.c