summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/soc_common.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-08-31 09:49:45 +0200
committerRussell King <rmk+kernel@armlinux.org.uk>2016-09-22 10:38:59 +0200
commit535e0abc0534b139b067d496bb93663acffb72ce (patch)
treecdb492a540551ed00b7c601074dd01f751e91dee /drivers/pcmcia/soc_common.h
parentpcmcia: soc_common: request legacy detect GPIO with active low (diff)
downloadlinux-535e0abc0534b139b067d496bb93663acffb72ce.tar.xz
linux-535e0abc0534b139b067d496bb93663acffb72ce.zip
pcmcia: soc_common: add support for reset and bus enable GPIOs
Add support to soc_common for controlling reset and bus enable GPIOs from within the generic soc_common layer, rather than having individual drivers having to perform this themselves. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/pcmcia/soc_common.h')
-rw-r--r--drivers/pcmcia/soc_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pcmcia/soc_common.h b/drivers/pcmcia/soc_common.h
index ee40db16dc40..686ba3238c76 100644
--- a/drivers/pcmcia/soc_common.h
+++ b/drivers/pcmcia/soc_common.h
@@ -62,6 +62,9 @@ struct soc_pcmcia_socket {
#define SOC_STAT_BVD2 2 /* BATWARN / IOSPKR */
#define SOC_STAT_RDY 3 /* Ready / Interrupt */
+ struct gpio_desc *gpio_reset;
+ struct gpio_desc *gpio_bus_enable;
+
unsigned int irq_state;
struct timer_list poll_timer;