]> 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)
commitede89bc54e3208daf083b5de99f15e8c6f98c3c8
tree6d0bd2da2a208e5a670144f0edd447d305b06ef2
parent7f040510e1c3314e3c33f12b8295d180d7469424
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