Skip to content

Commit 809090e

Browse files
ahunter6storulf
authored andcommitted
mmc: sdhci-pci: Add max-frequency device property for Intel controllers
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>
1 parent a622bb0 commit 809090e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/mmc/host/sdhci-pci-core.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,11 +710,15 @@ static int intel_execute_tuning(struct mmc_host *mmc, u32 opcode)
710710
static void byt_probe_slot(struct sdhci_pci_slot *slot)
711711
{
712712
struct mmc_host_ops *ops = &slot->host->mmc_host_ops;
713+
struct device *dev = &slot->chip->pdev->dev;
714+
struct mmc_host *mmc = slot->host->mmc;
713715

714716
byt_read_dsm(slot);
715717

716718
ops->execute_tuning = intel_execute_tuning;
717719
ops->start_signal_voltage_switch = intel_start_signal_voltage_switch;
720+
721+
device_property_read_u32(dev, "max-frequency", &mmc->f_max);
718722
}
719723

720724
static int byt_emmc_probe_slot(struct sdhci_pci_slot *slot)

0 commit comments

Comments
 (0)