summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorPavan Kunapuli <pkunapuli@nvidia.com>2011-12-29 20:20:34 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-31 04:30:08 -0800
commit3cbf1b33b8938da331f629d3d05ef127522e2de5 (patch)
tree2c68868c951e1c6fdf5b75b81425c8d501d16ebd /drivers/mmc
parent9fa5a085d5eb4ad97dd246223c51138e88c6e5e7 (diff)
mmc: core: Set card state to ddr in UHS DDR50 mode
When SD 3.0 cards operate in UHS DDR50 mode, set the card state to ddr mode to select the proper frequency. Bug 925326 Reviewed-on: http://git-master/r/72628 Change-Id: I9370ab402eb0c39f603555eccdcb49723ac4910f Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/78021 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index 92bd3737c4b0..cb2a9d4d4515 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -542,6 +542,8 @@ static int sd_set_bus_speed_mode(struct mmc_card *card, u8 *status)
mmc_hostname(card->host));
else {
mmc_set_timing(card->host, timing);
+ if (timing == MMC_TIMING_UHS_DDR50)
+ mmc_card_set_ddr_mode(card);
mmc_set_clock(card->host, card->sw_caps.uhs_max_dtr);
}