aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ssb/ssb_private.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-11-20 17:24:33 -0500
committerJohn Crispin <blogic@openwrt.org>2012-11-21 15:55:52 -0500
commitec43b08b5733494ad88aa618ecdf534320dd8207 (patch)
tree0d11a7fca2c2baef2d8d3b14564f747b6319c20a /drivers/ssb/ssb_private.h
parent394bc7e38be79987ed15de203920c3cddb724cc1 (diff)
ssb: add GPIO driver
Register a GPIO driver to access the GPIOs provided by the chip. The GPIOs of the SoC should always start at 0 and the other GPIOs could start at a random position. There is just one SoC in a system and when they start at 0 the number is predictable. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Patchwork: http://patchwork.linux-mips.org/patch/4591 Acked-by: Florian Fainelli <florian@openwrt.org>
Diffstat (limited to 'drivers/ssb/ssb_private.h')
-rw-r--r--drivers/ssb/ssb_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ssb/ssb_private.h b/drivers/ssb/ssb_private.h
index d6a1ba9394d9..463b76a2140b 100644
--- a/drivers/ssb/ssb_private.h
+++ b/drivers/ssb/ssb_private.h
@@ -219,4 +219,13 @@ static inline void ssb_extif_init(struct ssb_extif *extif)
219} 219}
220#endif 220#endif
221 221
222#ifdef CONFIG_SSB_DRIVER_GPIO
223extern int ssb_gpio_init(struct ssb_bus *bus);
224#else /* CONFIG_SSB_DRIVER_GPIO */
225static inline int ssb_gpio_init(struct ssb_bus *bus)
226{
227 return -ENOTSUPP;
228}
229#endif /* CONFIG_SSB_DRIVER_GPIO */
230
222#endif /* LINUX_SSB_PRIVATE_H_ */ 231#endif /* LINUX_SSB_PRIVATE_H_ */