MIPS: ath79: fix GPIO function selection for AR934x SoCs
authorGabor Juhos <juhosg@openwrt.org>
Tue, 29 Jan 2013 08:19:12 +0000 (08:19 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sun, 17 Feb 2013 00:25:27 +0000 (01:25 +0100)
commit8838becdf5f7261d7f5dfbbe957fe9b9ed188aec
tree9a2bfbe783c71cba97fff61978f96a815876cc98
parent778eeb1b199b85bec79b49ac483b013e270636ea
MIPS: ath79: fix GPIO function selection for AR934x SoCs

GPIO function selection is not working on the AR934x
SoCs because the offset of the function selection
register is different on those.

Add a helper routine which returns the correct
register address based on the SoC type, and use
that in the 'ath79_gpio_function_*' routines.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/4870/
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/ath79/gpio.c
arch/mips/include/asm/mach-ath79/ar71xx_regs.h