]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: sdhci-of-esdhc: add peripheral clock support
authoryangbo lu <yangbo.lu@nxp.com>
Thu, 20 Apr 2017 08:14:40 +0000 (16:14 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:42:25 +0000 (21:42 +0200)
commit19c3a0ef65adf090cb592dfe3e575f40322c88d8
treebdff42cb2935f67f26222b2d0ee6262ae0d71ed1
parenta72016a44703476bdb3567a13695938566e8f413
mmc: sdhci-of-esdhc: add peripheral clock support

eSDHC could select peripheral clock or platform clock as clock source by
the PCS bit of eSDHC Control Register, and this bit couldn't be reset by
software reset for all. In default, the platform clock is used. But we have
to use peripheral clock since it has a higher frequency to support eMMC
HS200 mode and SD UHS-I mode. This patch is to add peripheral clock support
and use it instead of platform clock if it's declared in eSDHC dts node.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc.h
drivers/mmc/host/sdhci-of-esdhc.c