mmc: sdhci-of-esdhc: fix reference clock source selection
authorYangbo Lu <yangbo.lu@nxp.com>
Sun, 27 Sep 2020 08:23:04 +0000 (16:23 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 28 Sep 2020 10:22:45 +0000 (12:22 +0200)
commit975520fc73809a3a0904f0c67d8640945696e798
tree8c4ce770405d684c2fbdf507cfdf8b8424becf75
parent3157b035f499e48334be1ec74b297721b82adb4b
mmc: sdhci-of-esdhc: fix reference clock source selection

The bit ESDHC_PERIPHERAL_CLK_SEL to select using peripheral clock
or platform clock is not able to be reset by SDHCI_RESET_ALL.
So driver needs to initialize it as 1 or 0 once, to override the
different value which may be configured in bootloader.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Link: https://lore.kernel.org/r/20200927082304.9232-1-yangbo.lu@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c