mmc: sdhci-of-arasan: Add support to request the "gate" clock
authorSwati Agarwal <swati.agarwal@amd.com>
Thu, 23 Feb 2023 14:14:02 +0000 (19:44 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 23 Mar 2023 10:30:19 +0000 (11:30 +0100)
commit4453d51e1814a8b7c2e686e50241d7b28088622e
tree7ed9b30efc65d983646d0a8ccb6f1a3da251e09b
parente8d018dd0257f744ca50a729e3d042cf2ec9da65
mmc: sdhci-of-arasan: Add support to request the "gate" clock

Add support to read the optional "gate" clock property and request the
clock which will be used to ungate the DLL clock.

For Xilinx platforms which has DLL module, dll clock must be
ungated/enabled when SD controller operates at higher frequencies like 50
MHz, 100 MHz and 200 MHz. This will be done by explicitly requesting gate
clock from the driver.

Signed-off-by: Swati Agarwal <swati.agarwal@amd.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20230223141402.23979-1-swati.agarwal@amd.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c