mmc: Enable SD card clock scaling

The SD card clock scaling feature has a dependency on the
MMC_SDHCI_MSM which is not defined. Remove this dependency
so that the SD card clock scaling feature can be enabled.
In addition, fix the SD cards 2.0 initialization caused
by the incorrect clock settings.

Change-Id: I3eaec3546f89b86643b1937764288b3f39578c0e
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
This commit is contained in:
Bao D. Nguyen 2020-05-22 15:50:56 -07:00
parent 4def047588
commit ef59869dfe
3 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ config MMC_TEST
config SDC_QTI
tristate "Enable QTI specific code in MMC upstream driver"
depends on QGKI && MMC_SDHCI_MSM
depends on QGKI
default n
help
This configuration flag allows adding QTI code in

View File

@ -978,8 +978,8 @@ unsigned mmc_sd_get_max_clock(struct mmc_card *card)
}
#else
if (mmc_card_hs(card)) {
if (max_dtr > card->sw_caps.uhs_max_dtr)
max_dtr = card->sw_caps.uhs_max_dtr;
if (max_dtr > card->sw_caps.hs_max_dtr)
max_dtr = card->sw_caps.hs_max_dtr;
} else if (max_dtr > card->csd.max_dtr) {
max_dtr = card->csd.max_dtr;
}

View File

@ -1022,7 +1022,7 @@ config MMC_SDHCI_AM654
config SDC_QTI
tristate "Enable QTI specific code in MMC upstream driver"
depends on QGKI && MMC_SDHCI_MSM
depends on QGKI
default n
help
This configuration flag allows adding QTI code in