diff options
| author | Arnd Hannemann <arnd@arndnet.de> | 2010-08-24 11:27:00 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-28 18:29:11 -0400 |
| commit | 998283e2e359249133f2f47db26669a55ff25c98 (patch) | |
| tree | 3c5866f8d91ee453491db747d7893dc379239ae5 /include/linux/mfd | |
| parent | 19ca7502c508595edfb963e5dbcf62854a926506 (diff) | |
mfd: Allow the platform to specify the sh_mobile_sdhi get_cd handler
On some platforms (e.g. AP4EVB) the card detect pin of a slot is not
directly connected to the sdhi hardware, so that polling needs to be used
with tmio_mmc and card detection is handled in the platform code.
This patch allows to set tmio_mmc capabilities (to pass the
MMC_CAP_NEEDS_POLL flag) and exposes a get_cd hook for that purpose.
Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/sh_mobile_sdhi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/sh_mobile_sdhi.h b/include/linux/mfd/sh_mobile_sdhi.h index 49067802a6d..c981b959760 100644 --- a/include/linux/mfd/sh_mobile_sdhi.h +++ b/include/linux/mfd/sh_mobile_sdhi.h | |||
| @@ -7,8 +7,10 @@ struct sh_mobile_sdhi_info { | |||
| 7 | int dma_slave_tx; | 7 | int dma_slave_tx; |
| 8 | int dma_slave_rx; | 8 | int dma_slave_rx; |
| 9 | unsigned long tmio_flags; | 9 | unsigned long tmio_flags; |
| 10 | unsigned long tmio_caps; | ||
| 10 | u32 tmio_ocr_mask; /* available MMC voltages */ | 11 | u32 tmio_ocr_mask; /* available MMC voltages */ |
| 11 | void (*set_pwr)(struct platform_device *pdev, int state); | 12 | void (*set_pwr)(struct platform_device *pdev, int state); |
| 13 | int (*get_cd)(struct platform_device *pdev); | ||
| 12 | }; | 14 | }; |
| 13 | 15 | ||
| 14 | #endif /* __SH_MOBILE_SDHI_H__ */ | 16 | #endif /* __SH_MOBILE_SDHI_H__ */ |
