diff options
author | Doug Anderson <dianders@chromium.org> | 2013-01-11 12:03:50 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-02-24 14:36:52 -0500 |
commit | a70aaa64da2205d32d1c9362d8f5d4be619cd58f (patch) | |
tree | a1744e9c87a2437863c707bb9ec043b5a4cebe5a /include/linux/mmc | |
parent | c148e9ff4bd45f26d3f0253c20efc497672c3c84 (diff) |
mmc: dw_mmc: Add "disable-wp" device tree property
The "disable-wp" property is used to specify that a given SD card slot
doesn't have a concept of write protect. This eliminates the need for
special case code for SD slots that should never be write protected
(like a micro SD slot or a dev board).
The dw_mmc driver is special in needing to specify "disable-wp"
because the lack of a "wp-gpios" property means to use the special
purpose write protect line. On some other mmc devices the lack of
"wp-gpios" means that write protect should be disabled.
Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/dw_mmc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h index 34be4f47293c..de61de5608c9 100644 --- a/include/linux/mmc/dw_mmc.h +++ b/include/linux/mmc/dw_mmc.h | |||
@@ -209,9 +209,18 @@ struct dw_mci_dma_ops { | |||
209 | #define DW_MCI_QUIRK_HIGHSPEED BIT(2) | 209 | #define DW_MCI_QUIRK_HIGHSPEED BIT(2) |
210 | /* Unreliable card detection */ | 210 | /* Unreliable card detection */ |
211 | #define DW_MCI_QUIRK_BROKEN_CARD_DETECTION BIT(3) | 211 | #define DW_MCI_QUIRK_BROKEN_CARD_DETECTION BIT(3) |
212 | |||
212 | /* Write Protect detection not available */ | 213 | /* Write Protect detection not available */ |
214 | /* | ||
215 | * NOTE: DW_MCI_QUIRK_NO_WRITE_PROTECT will be removed in a future | ||
216 | * patch in the series once reference to it is removed. | ||
217 | */ | ||
213 | #define DW_MCI_QUIRK_NO_WRITE_PROTECT BIT(4) | 218 | #define DW_MCI_QUIRK_NO_WRITE_PROTECT BIT(4) |
214 | 219 | ||
220 | /* Slot level quirks */ | ||
221 | /* This slot has no write protect */ | ||
222 | #define DW_MCI_SLOT_QUIRK_NO_WRITE_PROTECT BIT(0) | ||
223 | |||
215 | struct dma_pdata; | 224 | struct dma_pdata; |
216 | 225 | ||
217 | struct block_settings { | 226 | struct block_settings { |