Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44986ab0 authored by Peter De Schrijver (NVIDIA)'s avatar Peter De Schrijver (NVIDIA) Committed by Russell King
Browse files

ARM: 7240/1: Make ARCH_NR_GPIO a Kconfig variable



Change ARCH_NR_GPIO into a Kconfig variable as suggested by Russel King.
This makes ARCH_NR_GPIO single zImage friendly. The default value for
tegra is defined as well.

Signed-off-by: default avatarPeter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 7c324d83
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1565,6 +1565,15 @@ config LOCAL_TIMERS
	  accounting to be spread across the timer interval, preventing a
	  "thundering herd" at every timer tick.

config ARCH_NR_GPIO
	int
	default 1024 if ARCH_TEGRA
	default 0
	help
	  Maximum number of GPIOs in the system.

	  If unsure, leave the default value.

source kernel/Kconfig.preempt

config HZ
+4 −0
Original line number Diff line number Diff line
#ifndef _ARCH_ARM_GPIO_H
#define _ARCH_ARM_GPIO_H

#if CONFIG_ARCH_NR_GPIO > 0
#define ARCH_NR_GPIO CONFIG_ARCH_NR_GPIO
#endif

/* not all ARM platforms necessarily support this API ... */
#include <mach/gpio.h>