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)
commit6bcc55fe648b860ef0c2b8dc23adc05bcddb93c2
tree6d0bd2da2a208e5a670144f0edd447d305b06ef2
parentf3a70f991dd07330225ea11e158e1d07ad5733fb
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