]> git.baikalelectronics.ru Git - kernel.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)
commitadd90c7cc2475a6aad5f2974e75678df1b4a6c0f
treebdff42cb2935f67f26222b2d0ee6262ae0d71ed1
parent34c0b5f70f360048cf1c5762af7e9fdd4351c8f2
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