mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
mmc: sdhci-of-esdhc: use 1/2 periperhal clock for ls1088a
The eSDHC on LS1088A platform uses 1/2 peripheral clock as base clock. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com> Link: https://lore.kernel.org/r/20191216091911.14840-1-yangbo.lu@nxp.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
ee157abebc
commit
66a83feb59
1 changed files with 2 additions and 1 deletions
|
@ -1228,7 +1228,8 @@ static void esdhc_init(struct platform_device *pdev, struct sdhci_host *host)
|
||||||
* 1/2 peripheral clock.
|
* 1/2 peripheral clock.
|
||||||
*/
|
*/
|
||||||
if (of_device_is_compatible(np, "fsl,ls1046a-esdhc") ||
|
if (of_device_is_compatible(np, "fsl,ls1046a-esdhc") ||
|
||||||
of_device_is_compatible(np, "fsl,ls1028a-esdhc"))
|
of_device_is_compatible(np, "fsl,ls1028a-esdhc") ||
|
||||||
|
of_device_is_compatible(np, "fsl,ls1088a-esdhc"))
|
||||||
esdhc->peripheral_clock = clk_get_rate(clk) / 2;
|
esdhc->peripheral_clock = clk_get_rate(clk) / 2;
|
||||||
else
|
else
|
||||||
esdhc->peripheral_clock = clk_get_rate(clk);
|
esdhc->peripheral_clock = clk_get_rate(clk);
|
||||||
|
|
Loading…
Reference in a new issue