aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2010-08-09 01:58:48 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-09-10 15:31:16 -0400
commite39d5ef678045d61812c1401f04fe8edb14d6359 (patch)
tree62cc49305f5b7afb3ea80289d838a872c8e217f6 /arch/powerpc/platforms
parentf6cec0ae58c17522a7bc4e2f39dae19f199ab534 (diff)
powerpc/5xxx: extend mpc8xxx_gpio driver to support mpc512x gpios
The GPIO controller of MPC512x is slightly different from 8xxx GPIO controllers. The register interface is the same except the external interrupt control register. The MPC512x GPIO controller differentiates between four interrupt event types and therefore provides two interrupt control registers, GPICR1 and GPICR2. GPIO[0:15] interrupt event types are configured in GPICR1 register, GPIO[16:31] - in GPICR2 register. This patch adds MPC512x speciffic set_type() callback and updates config file and comments. Additionally the gpio chip registration function is changed to use for_each_matching_node() preventing multiple registration if a node claimes compatibility with another gpio controller type. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/Kconfig7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig
index d1663db7810f..471115a13d1b 100644
--- a/arch/powerpc/platforms/Kconfig
+++ b/arch/powerpc/platforms/Kconfig
@@ -304,13 +304,14 @@ config OF_RTC
304source "arch/powerpc/sysdev/bestcomm/Kconfig" 304source "arch/powerpc/sysdev/bestcomm/Kconfig"
305 305
306config MPC8xxx_GPIO 306config MPC8xxx_GPIO
307 bool "MPC8xxx GPIO support" 307 bool "MPC512x/MPC8xxx GPIO support"
308 depends on PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || FSL_SOC_BOOKE || PPC_86xx 308 depends on PPC_MPC512x || PPC_MPC831x || PPC_MPC834x || PPC_MPC837x || \
309 FSL_SOC_BOOKE || PPC_86xx
309 select GENERIC_GPIO 310 select GENERIC_GPIO
310 select ARCH_REQUIRE_GPIOLIB 311 select ARCH_REQUIRE_GPIOLIB
311 help 312 help
312 Say Y here if you're going to use hardware that connects to the 313 Say Y here if you're going to use hardware that connects to the
313 MPC831x/834x/837x/8572/8610 GPIOs. 314 MPC512x/831x/834x/837x/8572/8610 GPIOs.
314 315
315config SIMPLE_GPIO 316config SIMPLE_GPIO
316 bool "Support for simple, memory-mapped GPIO controllers" 317 bool "Support for simple, memory-mapped GPIO controllers"