mmc: sdhci-of-esdhc: fix clock setting for different controller versions
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 8 Jan 2020 04:07:13 +0000 (12:07 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 16 Jan 2020 10:50:18 +0000 (11:50 +0100)
commit1b21a701aed9dc14b6c5b3c25dde668804b038d2
tree7cf7b63eee525fd87241b9cd8d3126c9c77c6987
parent2aa3d826adb578b26629a79b775a552cfe3fedf7
mmc: sdhci-of-esdhc: fix clock setting for different controller versions

This patch is to fix clock setting code for different controller
versions. Two of HW changes after vendor version 2.2 are removing
PEREN/HCKEN/IPGEN bits in system control register, and adding SD
clock stable bit in present state register. This patch cleans up
related code too.

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