mmc: sdhci-of-dwcmshc: add ACPI support for BlueField-3 SoC
authorLiming Sun <limings@nvidia.com>
Mon, 22 Mar 2021 22:46:51 +0000 (18:46 -0400)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Mar 2021 09:42:07 +0000 (11:42 +0200)
commiteb81ed518079eaf8aca1053ffba54c56271b9f35
tree1fe666d383e79d914fe50741c953940e7fc0c487
parentee629112be8b4eff71d4d3d108a28bc7dc877e13
mmc: sdhci-of-dwcmshc: add ACPI support for BlueField-3 SoC

This commit adds ACPI support in the sdhci-of-dwcmshc driver for
BlueField-3 SoC. It has changes to only use the clock hierarchy
for Deviec Tree since the clk is not supported by ACPI. Instead,
ACPI can define 'clock-frequency' which is parsed by existing
sdhci_get_property(). This clock value will be returned in function
dwcmshc_get_max_clock().

Signed-off-by: Liming Sun <limings@nvidia.com>
Reviewed-by: Khalil Blaiech <kblaiech@nvidia.com>
Link: https://lore.kernel.org/r/1616453211-275165-1-git-send-email-limings@nvidia.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-dwcmshc.c