]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sdhci-of-esdhc: avoid clock glitch when frequency is changing
authoryangbo lu <yangbo.lu@nxp.com>
Mon, 26 Dec 2016 09:46:30 +0000 (17:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:15 +0000 (13:20 +0100)
commite87d2db2a2b534dad7ac0000c597b561c160880d
treec9734f8a622d35cb2b4758779fafe56cb8a6a702
parentc31165d7400bb1ec12291170c9c4d072d5b0ba45
mmc: sdhci-of-esdhc: avoid clock glitch when frequency is changing

The eSDHC_PRSSTAT[SDSTB] bit indicates whether the internal card clock is
stable. This bit is for the host driver to poll clock status when changing
the clock frequency. It is recommended to clear eSDHC_SYSCTL[SDCLKEN]
to remove glitch on the card clock when the frequency is changing. This
patch is to disable SDCLKEN bit before changing frequency and enable it
after SDSTB bit is set.

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