[U-Boot] [PATCH V2 0/6] Handle GPIO_ACTIVE_LOW in gpio-uclass
Eric Nelson
eric at nelint.com
Mon Apr 11 19:00:13 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.
This patch series takes a different approach and provides a default
routine for xlate that handles the most common case of GPIO
device tree node parsing:
<&gpio1 2 GPIO_ACTIVE_LOW>
The first routine adds the default gpio_xlate_offs_flags() routine,
and the remainder of the patches remove the driver-specific versions
from the intel_broadwell, omap, pic32, rk, and s5p drivers.
V2 of this patch set removes parsing of offset from the gpio_find_and_xlate
routine, and only parses the offset and GPIO_ACTIVE_LOW flag when a
driver-specific xlate is unavailable.
V2 also drops the update to the tegra_gpio driver.
Eric Nelson (6):
dm: gpio: add a default gpio xlate routine
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
drivers/gpio/gpio-uclass.c | 26 +++++++++++++++++++-------
drivers/gpio/intel_broadwell_gpio.c | 10 ----------
drivers/gpio/omap_gpio.c | 11 -----------
drivers/gpio/pic32_gpio.c | 10 ----------
drivers/gpio/rk_gpio.c | 11 -----------
drivers/gpio/s5p_gpio.c | 11 -----------
include/asm-generic/gpio.h | 19 ++++++++++++++-----
7 files changed, 33 insertions(+), 65 deletions(-)
--
2.6.2
More information about the U-Boot
mailing list