diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-11-20 17:24:30 -0500 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-21 15:55:52 -0500 |
commit | cf0936b06d8e98a157630e99f647e2ff6d29d7ad (patch) | |
tree | 651457e034e073d236e9b0e64e0008e4ed2e0150 /drivers/bcma/bcma_private.h | |
parent | 3e8bb507edfb44dfb8b0e06574826e34a8f6291d (diff) |
bcma: 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/4587
Acked-by: Florian Fainelli <florian@openwrt.org>
Diffstat (limited to 'drivers/bcma/bcma_private.h')
-rw-r--r-- | drivers/bcma/bcma_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h index 169fc58427d3..8cd80bff8e91 100644 --- a/drivers/bcma/bcma_private.h +++ b/drivers/bcma/bcma_private.h | |||
@@ -89,4 +89,14 @@ bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc); | |||
89 | void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); | 89 | void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); |
90 | #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ | 90 | #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ |
91 | 91 | ||
92 | #ifdef CONFIG_BCMA_DRIVER_GPIO | ||
93 | /* driver_gpio.c */ | ||
94 | int bcma_gpio_init(struct bcma_drv_cc *cc); | ||
95 | #else | ||
96 | static inline int bcma_gpio_init(struct bcma_drv_cc *cc) | ||
97 | { | ||
98 | return -ENOTSUPP; | ||
99 | } | ||
100 | #endif /* CONFIG_BCMA_DRIVER_GPIO */ | ||
101 | |||
92 | #endif | 102 | #endif |