summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/slot-gpio.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-04-30 23:31:57 +0200
committerChris Ball <cjb@laptop.org>2012-07-10 23:04:04 -0400
commitfd0ea65d3e675e479e022b6cfc9ebe1864c76afc (patch)
tree8869d7965ccb05b9ca635d21c983d84a552ee21e /include/linux/mmc/slot-gpio.h
parent0f506a96693d8ad4aeccbd98dbd54a3c7357cfa8 (diff)
downloadblackbird-obmc-linux-fd0ea65d3e675e479e022b6cfc9ebe1864c76afc.tar.gz
blackbird-obmc-linux-fd0ea65d3e675e479e022b6cfc9ebe1864c76afc.zip
mmc: extend and rename cd-gpio helpers to handle more slot GPIO functions
GPIOs can be used in MMC/SD-card slots not only for hotplug detection, but also to implement the write-protection pin. Rename cd-gpio helpers to slot-gpio to make addition of further slot GPIO functions possible. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc/slot-gpio.h')
-rw-r--r--include/linux/mmc/slot-gpio.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h
new file mode 100644
index 000000000000..edfaa3254373
--- /dev/null
+++ b/include/linux/mmc/slot-gpio.h
@@ -0,0 +1,18 @@
+/*
+ * Generic GPIO card-detect helper header
+ *
+ * Copyright (C) 2011, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MMC_SLOT_GPIO_H
+#define MMC_SLOT_GPIO_H
+
+struct mmc_host;
+int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio);
+void mmc_gpio_free_cd(struct mmc_host *host);
+
+#endif
OpenPOWER on IntegriCloud