mmc: sdhci-omap: Check MMCHS_HL_HWINFO register for ADMA
authorTony Lindgren <tony@atomide.com>
Tue, 21 Sep 2021 11:00:29 +0000 (14:00 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 12 Oct 2021 08:21:19 +0000 (10:21 +0200)
commitc66e21fdc42dcc1c5c559fc4682f3a7f8b4c93f1
tree05ca8036cc13ead77e8783ca9d40b6aaffca3e8c
parent3781d28805eca89796fd50af8e05569c210fc87d
mmc: sdhci-omap: Check MMCHS_HL_HWINFO register for ADMA

ADMA is only available on controller instances that are connected to the
L3 interconnect and are bus mastering capable.

As the MMCHS_HL_HWINFO is in the module registers before omap registers
and sdhci registers, and the omap registers and sdhci registers can be
at different offsets depending on the SoC, let's read MMCHS_HL_HWINFO
directly.

Let's also switch to using device_property_present() while at it.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210921110029.21944-6-tony@atomide.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c