diff mbox

[U-Boot,5/6] gpio: am43xx: expand gpio support

Message ID 1438289783-21505-6-git-send-email-nikita@compulab.co.il
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Nikita Kiryanov July 30, 2015, 8:56 p.m. UTC
AM43XX SoCs support up to 192 GPIO signals.
Make this amount available to the driver.

Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
---
 arch/arm/include/asm/arch-am33xx/gpio.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Tom Rini Aug. 13, 2015, 1:22 p.m. UTC | #1
On Thu, Jul 30, 2015 at 11:56:22PM +0300, Nikita Kiryanov wrote:

> AM43XX SoCs support up to 192 GPIO signals.
> Make this amount available to the driver.
> 
> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
> Cc: Igor Grinberg <grinberg@compulab.co.il>
> Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-am33xx/gpio.h b/arch/arm/include/asm/arch-am33xx/gpio.h
index 220603d..89ab055 100644
--- a/arch/arm/include/asm/arch-am33xx/gpio.h
+++ b/arch/arm/include/asm/arch-am33xx/gpio.h
@@ -6,7 +6,11 @@ 
 
 #include <asm/omap_gpio.h>
 
+#ifdef CONFIG_AM43XX
+#define OMAP_MAX_GPIO		192
+#else
 #define OMAP_MAX_GPIO		128
+#endif
 
 #define AM33XX_GPIO0_BASE       0x44E07000
 #define AM33XX_GPIO1_BASE       0x4804C000