mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
ae7123f876
So far driver model's GPIO uclass just implements the existing GPIO API. This has some limitations: - it requires manual device tree munging to support GPIOs in device tree (fdtdec_get_gpio() and friends) - it does not understand polarity - it is somewhat slower since we must scan for the GPIO device each time - Global GPIO numbering can change if other GPIO drivers are probed - it requires extra steps to set the GPIO direction and value The new functions have a dm_ prefix where necessary to avoid name conflicts but we can remove that when it is no-longer needed. The new struct gpio_desc holds all required information about the GPIO. For now this is intended to be stored by the client requesting the GPIO, but in future it might be brought into the uclass in some way. With these changes the old GPIO API still works, and uses the driver model API underneath. Signed-off-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 |