summaryrefslogtreecommitdiff
path: root/arch/mips/ath79/common.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-01-04 21:28:15 +0100
committerRalf Baechle <ralf@linux-mips.org>2011-01-18 19:30:25 +0100
commit6eae43c57ee92de91f6cc7c391cea97c43295da0 (patch)
tree5ac5521d28527e6218faea0f31cc888df65dbc9f /arch/mips/ath79/common.h
parentd4a67d9dc8a5a80c4ec1814791af8c0252c158b8 (diff)
MIPS: ath79: add GPIOLIB support
This patch implements generic GPIO routines for the built-in GPIO controllers of the Atheros AR71XX/AR724X/AR913X SoCs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> Cc: David Brownell <dbrownell@users.sourceforge.net> Cc: linux-mips@linux-mips.org Cc: Luis R. Rodriguez <lrodriguez@atheros.com> Cc: Cliff Holden <Cliff.Holden@Atheros.com> Cc: Kathy Giori <Kathy.Giori@Atheros.com> Patchwork: https://patchwork.linux-mips.org/patch/1948/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ath79/common.h')
-rw-r--r--arch/mips/ath79/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/ath79/common.h b/arch/mips/ath79/common.h
index 612a6b5d8702..561906c2345e 100644
--- a/arch/mips/ath79/common.h
+++ b/arch/mips/ath79/common.h
@@ -23,4 +23,9 @@
void ath79_clocks_init(void);
void ath79_ddr_wb_flush(unsigned int reg);
+void ath79_gpio_function_enable(u32 mask);
+void ath79_gpio_function_disable(u32 mask);
+void ath79_gpio_function_setup(u32 set, u32 clear);
+void ath79_gpio_init(void);
+
#endif /* __ATH79_COMMON_H */