mmc: sdhci: assign to clk_mul when host version is upper than SD3.0
To prevent the wrong value check the SD version. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
parent
288db7c7c0
commit
2a1bedaa03
@ -608,9 +608,11 @@ int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host,
|
|||||||
* In case of Host Controller v3.00, find out whether clock
|
* In case of Host Controller v3.00, find out whether clock
|
||||||
* multiplier is supported.
|
* multiplier is supported.
|
||||||
*/
|
*/
|
||||||
caps_1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
|
if (SDHCI_GET_VERSION(host) >= SDHCI_SPEC_300) {
|
||||||
host->clk_mul = (caps_1 & SDHCI_CLOCK_MUL_MASK) >>
|
caps_1 = sdhci_readl(host, SDHCI_CAPABILITIES_1);
|
||||||
SDHCI_CLOCK_MUL_SHIFT;
|
host->clk_mul = (caps_1 & SDHCI_CLOCK_MUL_MASK) >>
|
||||||
|
SDHCI_CLOCK_MUL_SHIFT;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user