OSDN Git Service

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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Jul 2022 10:25:33 +0000 (12:25 +0200)
commit97904a59855c7ac7c613085bc6bdc550d48524ff
tree23a5b574287fdeac97fa6d2e0eace4c013e721fe
parent2f8690ef64128bcbda24f0c426dff59835df7fbf
mmc: sdhci-brcmstb: Add ability to increase max clock rate for 72116b0

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>
drivers/mmc/host/sdhci-brcmstb.c