diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2017-01-17 15:58:48 +0100 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2017-01-23 15:37:42 +0900 |
commit | 6d0e34bf4e21596563e5f5950d097a2eab4c81a8 (patch) | |
tree | d1d82e018cb8b85d7f0ddb102667b676fe891237 /drivers/mmc/kona_sdhci.c | |
parent | 0c9e85f67cd86d2d7a3424ea3ebff0e6db7a3915 (diff) | |
download | u-boot-6d0e34bf4e21596563e5f5950d097a2eab4c81a8.tar.gz |
mmc: sdhci: Distinguish between base clock and maximum peripheral frequency
The sdhci controller assumes that the base clock frequency is fully supported by
the peripheral and doesn't support hardware limitations. The Linux kernel
distinguishes between base clock (max_clk) of the host controller and maximum
frequency (f_max) of the card interface. Use the same differentiation and allow
the platform to constrain the peripheral interface.
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Diffstat (limited to 'drivers/mmc/kona_sdhci.c')
-rw-r--r-- | drivers/mmc/kona_sdhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c index 549f6bcbbd..ddd821bfc3 100644 --- a/drivers/mmc/kona_sdhci.c +++ b/drivers/mmc/kona_sdhci.c @@ -121,12 +121,13 @@ int kona_sdhci_init(int dev_index, u32 min_clk, u32 quirks) host->name = "kona-sdhci"; host->ioaddr = reg_base; host->quirks = quirks; + host->max_clk = max_clk; if (init_kona_mmc_core(host)) { free(host); return -EINVAL; } - add_sdhci(host, max_clk, min_clk); + add_sdhci(host, 0, min_clk); return ret; } |