From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Mon, 11 Apr 2016 10:00:13 -0700 Subject: [U-Boot] [PATCH V2 0/6] Handle GPIO_ACTIVE_LOW in gpio-uclass In-Reply-To: <1459525662-28032-1-git-send-email-eric@nelint.com> References: <1459525662-28032-1-git-send-email-eric@nelint.com> Message-ID: <1460394019-3393-1-git-send-email-eric@nelint.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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