]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8124902aed4f160bf7d1876944959eb979413fa8
tree0ce2262c9167bb6ef0359691d0a9482788d74e8b
parent398c48f7836379e475b25c8a1775a4419be91f00
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