]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/5xxx: extend mpc8xxx_gpio driver to support mpc512x gpios
authorAnatolij Gustschin <agust@denx.de>
Mon, 9 Aug 2010 05:58:48 +0000 (07:58 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 10 Sep 2010 19:31:16 +0000 (13:31 -0600)
commitedda97a9e5d20e983276eec54a37faf90ddf822e
tree62cc49305f5b7afb3ea80289d838a872c8e217f6
parent42eb872df84e5f99e38533e49d6b2ab720827ffe
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>
arch/powerpc/platforms/Kconfig
arch/powerpc/sysdev/mpc8xxx_gpio.c