mmc: meson-gx: use CCF to handle the clock phases
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 28 Aug 2017 14:29:12 +0000 (16:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:50 +0000 (15:03 +0200)
commit033d7168595b5cb2f0983221f32cd2b33e10f343
tree0ce2262c9167bb6ef0359691d0a9482788d74e8b
parent186cd8b7f586250cc0bb20b1c2c2586895dede7e
mmc: meson-gx: use CCF to handle the clock phases

Several phases can be controlled on the meson-gx controller, the core, tx
and rx clock phase. The tx and rx uses delays to allow  more fine grained
setting of the phase. To properly compute the phase using delays,
accessing the clock rate is necessary.

Instead of ad-hoc functions, use the common clock framework to set the
clock phases (and access the clock rate while doing it).

Acked-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