diff mbox

[1/5] ARM: sunxi: Increase the number of GPIOs available

Message ID 1359211016-24097-2-git-send-email-maxime.ripard@free-electrons.com (mailing list archive)
State New, archived
Headers show

Commit Message

Maxime Ripard Jan. 26, 2013, 2:36 p.m. UTC
The Allwinner A10 has 9 banks of 32 GPIOs available, so it doesn't fit
in the usual 256 limit set by gpio.h. Increase this number to 288.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Linus Walleij Jan. 29, 2013, 10:40 p.m. UTC | #1
On Sat, Jan 26, 2013 at 3:36 PM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:

> The Allwinner A10 has 9 banks of 32 GPIOs available, so it doesn't fit
> in the usual 256 limit set by gpio.h. Increase this number to 288.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> ---
>  arch/arm/Kconfig |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index f95ba14..1e86fa9 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1632,7 +1632,7 @@ config ARCH_NR_GPIO
>         default 355 if ARCH_U8500
>         default 264 if MACH_H4700
>         default 512 if SOC_OMAP5
> -       default 288 if ARCH_VT8500
> +       default 288 if ARCH_VT8500 || ARCH_SUNXI

Can I have an ACK from the ARM SoC maintainers on this?

Yours,
Linus Walleij
Arnd Bergmann Jan. 29, 2013, 10:57 p.m. UTC | #2
On Tuesday 29 January 2013, Linus Walleij wrote:
> > --- a/arch/arm/Kconfig
> > +++ b/arch/arm/Kconfig
> > @@ -1632,7 +1632,7 @@ config ARCH_NR_GPIO
> >         default 355 if ARCH_U8500
> >         default 264 if MACH_H4700
> >         default 512 if SOC_OMAP5
> > -       default 288 if ARCH_VT8500
> > +       default 288 if ARCH_VT8500 || ARCH_SUNXI
> 
> Can I have an ACK from the ARM SoC maintainers on this?
> 

Acked-by: Arnd Bergmann <arnd@arndb.de>

for the change. Maybe you could also do a second patch on top that
sorts the lines by descending numbers and adds a comment? I think
for any multiplatform kernel, we have to pick the largest number
required by any of the enabled platforms.
Linus Walleij Feb. 1, 2013, 9:43 a.m. UTC | #3
On Sat, Jan 26, 2013 at 3:36 PM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:

> The Allwinner A10 has 9 banks of 32 GPIOs available, so it doesn't fit
> in the usual 256 limit set by gpio.h. Increase this number to 288.
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Patch applied to the pinctrl tree on my allwinner branch,
with Arnd's ACK.

Yours,
Linus Walleij
diff mbox

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f95ba14..1e86fa9 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1632,7 +1632,7 @@  config ARCH_NR_GPIO
 	default 355 if ARCH_U8500
 	default 264 if MACH_H4700
 	default 512 if SOC_OMAP5
-	default 288 if ARCH_VT8500
+	default 288 if ARCH_VT8500 || ARCH_SUNXI
 	default 0
 	help
 	  Maximum number of GPIOs in the system.