commit | 8838becdf5f7261d7f5dfbbe957fe9b9ed188aec | [log] [tgz] |
---|---|---|
author | Gabor Juhos <juhosg@openwrt.org> | Tue Jan 29 08:19:12 2013 +0000 |
committer | John Crispin <blogic@openwrt.org> | Sun Feb 17 01:25:27 2013 +0100 |
tree | 9a2bfbe783c71cba97fff61978f96a815876cc98 | |
parent | 778eeb1b199b85bec79b49ac483b013e270636ea [diff] |
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>