mmc: sdhci_am654: Add support for input tap delay
authorFaiz Abbas <faiz_abbas@ti.com>
Wed, 23 Sep 2020 10:52:04 +0000 (16:22 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 28 Sep 2020 10:31:06 +0000 (12:31 +0200)
commita0a62497f6aac0f9ba25e7befb334046c98fdf92
tree3d043203b0e55e3c54d53962396f0edd81819458
parent1e753dbb9ce824fc490c0c3757c4f39df72dc28b
mmc: sdhci_am654: Add support for input tap delay

DLL need only be enabled for speed modes and clock frequencies at or
above 50 MHz. For speed modes that don't enable the DLL, we need to
configure a static input delay value. This involves reading an optional
itap-del-sel-* value from the device tree and configuring it for the
appropriate speed mode.

With this addition, make sure that DLL is always switched off at the
beginning of the set_clock() call to simplify configuration. This also
removes the need for the dll_on member in struct sdhci_am654_data.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Link: https://lore.kernel.org/r/20200923105206.7988-5-faiz_abbas@ti.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_am654.c