Skip to content

Commit

Permalink
mmc: sdhci-pci: Add max-frequency device property for Intel controllers
Browse files Browse the repository at this point in the history
Add support for the mmc max-frequency device property for Intel BYT-based
host controllers.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Adrian Hunter authored and Ulf Hansson committed Dec 17, 2018
1 parent a622bb0 commit 809090e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/mmc/host/sdhci-pci-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -710,11 +710,15 @@ static int intel_execute_tuning(struct mmc_host *mmc, u32 opcode)
static void byt_probe_slot(struct sdhci_pci_slot *slot)
{
struct mmc_host_ops *ops = &slot->host->mmc_host_ops;
struct device *dev = &slot->chip->pdev->dev;
struct mmc_host *mmc = slot->host->mmc;

byt_read_dsm(slot);

ops->execute_tuning = intel_execute_tuning;
ops->start_signal_voltage_switch = intel_start_signal_voltage_switch;

device_property_read_u32(dev, "max-frequency", &mmc->f_max);
}

static int byt_emmc_probe_slot(struct sdhci_pci_slot *slot)
Expand Down

0 comments on commit 809090e

Please sign in to comment.