]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
powerpc: Implement GPIO driver for simple memory-mapped banks
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 18 Dec 2008 16:37:26 +0000 (19:37 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 30 Dec 2008 17:13:45 +0000 (11:13 -0600)
commit3d64de9c50619d32eb71d993d23a50b98d12d3c0
treec6477e8309eaddf30c64619794e1f44775cd7352
parent94409d6e1088517b6d6c8e669c604cc86d08ac1b
powerpc: Implement GPIO driver for simple memory-mapped banks

The driver supports very simple GPIO controllers, that is, when a
controller provides just a 'data' register. Such controllers may be
found in various BCSRs (Board's FPGAs used to control board's
switches, LEDs, chip-selects, Ethernet/USB PHY power, etc).

So far we support only 1-byte GPIO banks. Support for other widths may
be implemented when/if needed.

p.s.
To avoid "made up" compatible entries (like compatible = "simple-gpio"),
boards must call simple_gpiochip_init() to pass the compatible string.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/Kconfig
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/simple_gpio.c [new file with mode: 0644]
arch/powerpc/sysdev/simple_gpio.h [new file with mode: 0644]