aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src/gpio-bcm947xx.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-08-04 19:46:25 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-08-04 19:46:25 +0000
commit075899682416938171ad47cba21de5dceebcdb43 (patch)
treec4e4149807f66b206dcf5d8217bcbe0a04537502 /package/switch/src/gpio-bcm947xx.h
parent3942aebedc26bccaba639ec281920faca363a6e9 (diff)
downloadupstream-075899682416938171ad47cba21de5dceebcdb43.tar.gz
upstream-075899682416938171ad47cba21de5dceebcdb43.tar.bz2
upstream-075899682416938171ad47cba21de5dceebcdb43.zip
brcm47xx: use libgpio instaed of implementing the gpio interface ourself.
SVN-Revision: 32992
Diffstat (limited to 'package/switch/src/gpio-bcm947xx.h')
-rw-r--r--package/switch/src/gpio-bcm947xx.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/package/switch/src/gpio-bcm947xx.h b/package/switch/src/gpio-bcm947xx.h
deleted file mode 100644
index 23c221da87..0000000000
--- a/package/switch/src/gpio-bcm947xx.h
+++ /dev/null
@@ -1,55 +0,0 @@
-#ifndef __SWITCH_GPIO_H
-#define __SWITCH_GPIO_H
-
-#include <linux/ssb/ssb_embedded.h>
-#include <linux/bcma/bcma_driver_chipcommon.h>
-#include <bcm47xx.h>
-
-static inline u32 gpio_in(void)
-{
- switch (bcm47xx_bus_type) {
-#ifdef CONFIG_BCM47XX_SSB
- case BCM47XX_BUS_TYPE_SSB:
- return ssb_gpio_in(&bcm47xx_bus.ssb, ~0);
-#endif
-#ifdef CONFIG_BCM47XX_BCMA
- case BCM47XX_BUS_TYPE_BCMA:
- return bcma_chipco_gpio_in(&bcm47xx_bus.bcma.bus.drv_cc, ~0);
-#endif
- }
- return -EINVAL;
-}
-
-static inline u32 gpio_out(u32 mask, u32 value)
-{
- switch (bcm47xx_bus_type) {
-#ifdef CONFIG_BCM47XX_SSB
- case BCM47XX_BUS_TYPE_SSB:
- return ssb_gpio_out(&bcm47xx_bus.ssb, mask, value);
-#endif
-#ifdef CONFIG_BCM47XX_BCMA
- case BCM47XX_BUS_TYPE_BCMA:
- return bcma_chipco_gpio_out(&bcm47xx_bus.bcma.bus.drv_cc, mask, value);
-#endif
- }
- return -EINVAL;
-}
-
-static inline u32 gpio_outen(u32 mask, u32 value)
-{
- switch (bcm47xx_bus_type) {
-#ifdef CONFIG_BCM47XX_SSB
- case BCM47XX_BUS_TYPE_SSB:
- ssb_gpio_outen(&bcm47xx_bus.ssb, mask, value);
- return 0;
-#endif
-#ifdef CONFIG_BCM47XX_BCMA
- case BCM47XX_BUS_TYPE_BCMA:
- bcma_chipco_gpio_outen(&bcm47xx_bus.bcma.bus.drv_cc, mask, value);
- return 0;
-#endif
- }
- return -EINVAL;
-}
-
-#endif /* __SWITCH_GPIO_H */