diff options
author | Pavan Kunapuli <pkunapuli@nvidia.com> | 2011-12-29 20:20:34 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-31 04:30:08 -0800 |
commit | 3cbf1b33b8938da331f629d3d05ef127522e2de5 (patch) | |
tree | 2c68868c951e1c6fdf5b75b81425c8d501d16ebd /drivers/mmc | |
parent | 9fa5a085d5eb4ad97dd246223c51138e88c6e5e7 (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.c | 2 |
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); } |