]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci-brcmstb: Add ability to increase max clock rate for 72116b0
authorKamal Dasu <kdasu.kdev@gmail.com>
Fri, 20 May 2022 18:31:08 +0000 (14:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:32:05 +0000 (14:32 +0200)
commit6991fabddd6ff10816a137db3589635c06f6bceb
treef583b1aacb6b5820d0331454c8cd89f5adb21964
parent4c671d0377b80a70e3fb8e5792166da7809d3e8c
mmc: sdhci-brcmstb: Add ability to increase max clock rate for 72116b0

[ Upstream commit 97904a59855c7ac7c613085bc6bdc550d48524ff ]

The 72116B0 has improved SDIO controllers that allow the max clock
rate to be increased from a max of 100MHz to a max of 150MHz. The
driver will need to get the clock and increase it's default rate
and override the caps register, that still indicates a max of 100MHz.
The new clock will be named "sdio_freq" in the DT node's "clock-names"
list. The driver will use a DT property, "clock-frequency", to
enable this functionality and will get the actual rate in MHz
from the property to allow various speeds to be requested.

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>
Link: https://lore.kernel.org/r/20220520183108.47358-3-kdasu.kdev@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Stable-dep-of: 723ef0e20dbb ("mmc: sdhci-brcmstb: add cqhci suspend/resume to PM ops")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/sdhci-brcmstb.c