]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: am43xx: expand gpio support
authorNikita Kiryanov <nikita@compulab.co.il>
Thu, 30 Jul 2015 20:56:22 +0000 (23:56 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 13 Aug 2015 00:48:04 +0000 (20:48 -0400)
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

index 220603db5a3858a7764e2233a5a0ef990be52eef..89ab0553857ad85ddd343876de6cf52141e2150e 100644 (file)
@@ -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