summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/sh_mobile_sdhi.h
diff options
context:
space:
mode:
authorSimon Horman2011-08-26 10:42:39 +0200
committerChris Ball2011-10-26 21:43:36 +0200
commitd5098cb63b3f13da2a2b230b3566ac7b5dfa4f28 (patch)
treeb1317ea1339a678b283a0213f5c6647a58099b33 /include/linux/mmc/sh_mobile_sdhi.h
parentmmc: tmio: Provide separate interrupt handlers (diff)
downloadkernel-qcow2-linux-d5098cb63b3f13da2a2b230b3566ac7b5dfa4f28.tar.gz
kernel-qcow2-linux-d5098cb63b3f13da2a2b230b3566ac7b5dfa4f28.tar.xz
kernel-qcow2-linux-d5098cb63b3f13da2a2b230b3566ac7b5dfa4f28.zip
mmc: sdhi: Allow named IRQs to use specific handlers
Allow named IRQs to use corresponding specific handlers. If named IRQs are used, at least an "sdcard" IRQ has to be specified by the platform. If names are not used, an arbitrary number of IRQs can be provided by the platform, in which case the generic ISR will be used for each of them. Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Magnus Damm <magnus.damm@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au> [g.liakhovetski@gmx.de: style and typo corrections, platform data check] Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc/sh_mobile_sdhi.h')
-rw-r--r--include/linux/mmc/sh_mobile_sdhi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mmc/sh_mobile_sdhi.h b/include/linux/mmc/sh_mobile_sdhi.h
index bd50b365167f..71b805451bd8 100644
--- a/include/linux/mmc/sh_mobile_sdhi.h
+++ b/include/linux/mmc/sh_mobile_sdhi.h
@@ -6,6 +6,10 @@
struct platform_device;
struct tmio_mmc_data;
+#define SH_MOBILE_SDHI_IRQ_CARD_DETECT "card_detect"
+#define SH_MOBILE_SDHI_IRQ_SDCARD "sdcard"
+#define SH_MOBILE_SDHI_IRQ_SDIO "sdio"
+
struct sh_mobile_sdhi_info {
int dma_slave_tx;
int dma_slave_rx;