mmc: meson-gx: rework tuning function
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 28 Aug 2017 14:29:15 +0000 (16:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:51 +0000 (15:03 +0200)
commitd341ca88eead011c9097c0b5b1be0a1f6f975fc5
tree2fc41ef1f38eeda55dd2096ccfe22fe1636c4074
parentbac135da21878282bf1368cdd26c542db731743e
mmc: meson-gx: rework tuning function

Rework tuning function of the rx phase. Now that the phase can be
more precisely set using CCF, test more phase setting and find the
largest working window. Then the tuning selected is the one at the
center of the window.

This rework allows to use new modes, such as UHS SDR50

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