mmc: sdhci-xenon: use clk only with DT
authorMarcin Wojtas <mw@semihalf.com>
Fri, 4 Dec 2020 17:16:25 +0000 (18:16 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 11 Dec 2020 09:08:37 +0000 (10:08 +0100)
commit1542488031deed57e1f0853a07bd4934ce27e599
tree8bfaa95444df2174b16d9889c5cbf5b8a6ead4a7
parentf29bf660bf4137ab1c2c3915d89e16818d20d792
mmc: sdhci-xenon: use clk only with DT

As a preparation for supporting ACPI, modify the driver
to use the clk framework only when booting with DT -
otherwise rely on the configuration done by firmware.
For that purpose introduce also a custom SDHCI get_max_clock
callback.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Link: https://lore.kernel.org/r/20201204171626.10935-4-mw@semihalf.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-xenon.c