OSDN Git Service

mmc: dw_mmc: Support voltage changes
authorDoug Anderson <dianders@chromium.org>
Fri, 22 Aug 2014 13:47:51 +0000 (19:17 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:18 +0000 (13:59 +0200)
commit0173055842cd1d9ed3984e70891c22dbf2f29372
treed3f35f45b4a78e36b5426d49baadebc79401fb01
parent51da2240906cb94e8f6ba55e403b6206df6fb2dd
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>
drivers/mmc/host/dw_mmc.c
drivers/mmc/host/dw_mmc.h
include/linux/mmc/dw_mmc.h