[U-Boot] [PATCH 0/7] Handle GPIO_ACTIVE_LOW in gpio-uclass
Eric Nelson
eric at nelint.com
Fri Apr 1 17:47:35 CEST 2016
As Peng pointed out in [1], GPIO_ACTIVE_LOW is currently being
parsed by driver-specific xlate routines, and an NXP/mxc-specific
patch ([2]) to do the same on those processors is pending.
Upon further inspection, I found that many arch-specific xlate
routines were present only to parse either or both offset and
the GPIO_ACTIVE_LOW flag, both of which can be handled at a global
level.
This series adds global support for GPIO_ACTIVE_LOW and removes
the architecture-specific gpio xlate routine from five drivers.
It also removes the handling of flags in the tegra gpio driver,
though a custom xlate is still needed.
[1] - http://lists.denx.de/pipermail/u-boot/2016-March/thread.html#249946
[2] - https://patchwork.ozlabs.org/patch/597363/
Eric Nelson (7):
dm: gpio: handle GPIO_ACTIVE_LOW flag in DT
gpio: intel_broadwell: remove gpio_xlate routine
gpio: omap: remove gpio_xlate routine
gpio: pic32: remove gpio_xlate routine
gpio: rk: remove gpio_xlate routine
gpio: exynos(s5p): remove gpio_xlate routine
gpio: tegra: remove flags parsing in xlate routine
drivers/gpio/gpio-uclass.c | 12 ++++++++----
drivers/gpio/intel_broadwell_gpio.c | 10 ----------
drivers/gpio/omap_gpio.c | 10 ----------
drivers/gpio/pic32_gpio.c | 9 ---------
drivers/gpio/rk_gpio.c | 10 ----------
drivers/gpio/s5p_gpio.c | 10 ----------
drivers/gpio/tegra_gpio.c | 1 -
7 files changed, 8 insertions(+), 54 deletions(-)
--
2.6.2
More information about the U-Boot
mailing list