[ARM] Orion: rework MPP handling
authorLennert Buytenhek <buytenh@wantstofly.org>
Sat, 10 May 2008 21:25:46 +0000 (23:25 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Sun, 22 Jun 2008 20:44:47 +0000 (22:44 +0200)
commit19cfd5c09f780ac870fd9d89201c4ebc0b22be81
tree655e4eb79d22a8e9a62676f6fc13391bf8de931f
parent386a048a1ea42ff9ac87ffa344c4c19a5cc59678
[ARM] Orion: rework MPP handling

Instead of having board code poke directly into the MPP configuration
registers, and separately calling orion5x_gpio_set_valid_pins() to
indicate which MPP pins can be used as GPIO pins, introduce a helper
function for configuring the roles of each of the MPP pins, and have
that helper function handle gpio validity internally.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Acked-by: Sylver Bruneau <sylver.bruneau@googlemail.com>
Acked-by: Russell King <linux@arm.linux.org.uk>
arch/arm/mach-orion5x/Makefile
arch/arm/mach-orion5x/common.h
arch/arm/mach-orion5x/db88f5281-setup.c
arch/arm/mach-orion5x/dns323-setup.c
arch/arm/mach-orion5x/gpio.c
arch/arm/mach-orion5x/kurobox_pro-setup.c
arch/arm/mach-orion5x/mpp.c [new file with mode: 0644]
arch/arm/mach-orion5x/mpp.h [new file with mode: 0644]
arch/arm/mach-orion5x/rd88f5182-setup.c
arch/arm/mach-orion5x/ts209-setup.c