mmc: meson-gx: add signal resampling tuning
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 23 Apr 2019 09:02:35 +0000 (11:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 May 2019 09:55:39 +0000 (11:55 +0200)
commitf50b7ac5e4ed33f5d2095bfecf48e0671289d188
treeb710b344df5e160da0e3d40c2ddcf67d84c643a2
parent5e6f75f42393d1619ca426a4909df963cc814fbc
mmc: meson-gx: add signal resampling tuning

Use signal resampling tuning for the UHS and HS200 modes.
Instead of trying to get the *best* resampling setting with complex
window calculation, we just stop on the first working setting.

If the tuning setting later proves unstable, we will just continue the
tuning where we left it.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c