Chen-Yu Tsai dc8797e39f clk: sunxi-ng: Add MP_MMC clocks that support MMC timing modes switching
All of our MMC clocks are of the MP clock type. A few MMC clocks on some
SoCs, such as MMC2 on the A83T, support new/old timing mode switching.

>From a clock rate point of view, when the new timing mode is active. the
output clock rate is halved.

This patch adds a special wrapper class of clocks, MP_MMC, around the
generic MP type clocks. The rate related callbacks in ccu_mp_mmc_ops
for this class look at the timing mode bit and apply the /2 post-divider
when needed, before passing it through to the generic class ops,
ccu_mp_ops.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2017-08-30 14:01:47 +02:00
..
2017-06-19 17:14:11 -07:00
2016-12-15 15:39:02 -08:00
2016-11-16 11:19:20 -08:00
2017-06-15 10:48:08 +03:00
2017-06-19 19:02:42 -07:00
2017-06-02 15:37:45 -07:00
2016-11-09 12:05:50 -08:00
2017-07-17 11:51:10 -07:00
2016-10-23 10:18:45 -07:00