]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-brcmstb: Enable Clock Gating to save power
authorAl Cooper <alcooperx@gmail.com>
Wed, 27 Apr 2022 18:08:51 +0000 (14:08 -0400)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 May 2022 10:04:55 +0000 (12:04 +0200)
commita57c92275dcbcbc0c38caae950c5468050ab8f13
tree6d0bd2da2a208e5a670144f0edd447d305b06ef2
parentdd9a6eadcd68c6e4b9dc0881c1441bf21fe2f7f7
mmc: sdhci-brcmstb: Enable Clock Gating to save power

Enabling this feature will allow the controller to stop the bus
clock when the bus is idle. The feature is not part of the standard
and is unique to newer Arasan cores and is enabled with a bit in a
vendor specific register. This feature will only be enabled for
non-removable devices because they don't switch the voltage and
clock gating breaks SD Card volatge switching.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20220427180853.35970-3-kdasu.kdev@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-brcmstb.c