diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2010-05-19 14:36:02 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-22 04:05:21 -0400 |
commit | ac8fb3e8627d5494f3d2221925a82be4c1778b0e (patch) | |
tree | 5e2e62928e4eeb67aac2363b613ec087546912d6 /include/linux/mfd/tmio.h | |
parent | 65a1b0347a329422e939e14daae6dad9a29e9cf2 (diff) |
tmio: add a platform flag to disable card write-protection detection
Write-protection status is not always available, e.g., micro-SD cards do not
have a write-protection switch at all. This patch adds a flag to let platforms
force tmio_mmc to consider the card writable.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Ian Molton <ian@mnementh.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/mfd/tmio.h')
-rw-r--r-- | include/linux/mfd/tmio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index 360fc953d7bb..feeed0b9ee70 100644 --- a/include/linux/mfd/tmio.h +++ b/include/linux/mfd/tmio.h | |||
@@ -50,6 +50,9 @@ | |||
50 | tmio_iowrite16((val) >> 16, (base) + ((reg + 2) << (shift))); \ | 50 | tmio_iowrite16((val) >> 16, (base) + ((reg + 2) << (shift))); \ |
51 | } while (0) | 51 | } while (0) |
52 | 52 | ||
53 | /* tmio MMC platform flags */ | ||
54 | #define TMIO_MMC_WRPROTECT_DISABLE (1 << 0) | ||
55 | |||
53 | int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base); | 56 | int tmio_core_mmc_enable(void __iomem *cnf, int shift, unsigned long base); |
54 | int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base); | 57 | int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base); |
55 | void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); | 58 | void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); |
@@ -66,6 +69,7 @@ struct tmio_mmc_dma { | |||
66 | struct tmio_mmc_data { | 69 | struct tmio_mmc_data { |
67 | unsigned int hclk; | 70 | unsigned int hclk; |
68 | unsigned long capabilities; | 71 | unsigned long capabilities; |
72 | unsigned long flags; | ||
69 | struct tmio_mmc_dma *dma; | 73 | struct tmio_mmc_dma *dma; |
70 | void (*set_pwr)(struct platform_device *host, int state); | 74 | void (*set_pwr)(struct platform_device *host, int state); |
71 | void (*set_clk_div)(struct platform_device *host, int state); | 75 | void (*set_clk_div)(struct platform_device *host, int state); |