Skip to content

Commit

Permalink
mmc: Added support to switch emmc to correct frequency
Browse files Browse the repository at this point in the history
When no-1-8-v is added in device tree, it slows down emmc to 25MHz.
This patch fixed this issue by setting correct emmc frequency.
Now, after adding no-1-8-v is added in device tree, it slows down emmc
to 52MHz.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
  • Loading branch information
Vipul Kumar authored and Michal Simek committed Apr 23, 2018
1 parent 1553757 commit 328b87f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,9 @@ static int mmc_change_freq(struct mmc *mmc)
return 0;

/* High Speed is set, there are three types: 200MHZ, 52MHz and 26MHz */
if (cardtype & EXT_CSD_CARD_TYPE_HS200) {
if (cardtype & EXT_CSD_CARD_TYPE_HS200)
mmc->card_caps |= MMC_MODE_HS200;
} else if (cardtype & EXT_CSD_CARD_TYPE_52) {
if (cardtype & EXT_CSD_CARD_TYPE_52) {
if (cardtype & EXT_CSD_CARD_TYPE_DDR_1_8V)
mmc->card_caps |= MMC_MODE_DDR_52MHz;
mmc->card_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
Expand Down

0 comments on commit 328b87f

Please sign in to comment.