summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2014-08-22 19:17:51 +0530
committerUlf Hansson <ulf.hansson@linaro.org>2014-09-09 13:59:18 +0200
commit0173055842cd1d9ed3984e70891c22dbf2f29372 (patch)
treed3f35f45b4a78e36b5426d49baadebc79401fb01 /include/linux/mmc
parent51da2240906cb94e8f6ba55e403b6206df6fb2dd (diff)
downloadblackbird-op-linux-0173055842cd1d9ed3984e70891c22dbf2f29372.tar.gz
blackbird-op-linux-0173055842cd1d9ed3984e70891c22dbf2f29372.zip
mmc: dw_mmc: Support voltage changes
For UHS cards we need the ability to switch voltages from 3.3V to 1.8V. Add support to the dw_mmc driver to handle this. Note that dw_mmc needs a little bit of extra code since the interface needs a special bit programmed to the CMD register while CMD11 is progressing. This means adding a few extra states to the state machine to track. Signed-off-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Yuvaraj Kumar C D <yuvaraj.cd@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/dw_mmc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/dw_mmc.h b/include/linux/mmc/dw_mmc.h
index 84e2827d0f0b..001366927cf4 100644
--- a/include/linux/mmc/dw_mmc.h
+++ b/include/linux/mmc/dw_mmc.h
@@ -26,6 +26,8 @@ enum dw_mci_state {
STATE_DATA_BUSY,
STATE_SENDING_STOP,
STATE_DATA_ERROR,
+ STATE_SENDING_CMD11,
+ STATE_WAITING_CMD11_DONE,
};
enum {
OpenPOWER on IntegriCloud