]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock
authorChen-Yu Tsai <wens@csie.org>
Mon, 24 Jul 2017 13:58:58 +0000 (21:58 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:48 +0000 (14:01 +0200)
commit3a2783943bf9e24206d8cd6c008362e769260f34
tree0d5ada4405b192bfa9e03017306f77ee9a81eae1
parent2d7f3a8bf82b902036ae2de84caf6c24abc6c74e
clk: sunxi-ng: a83t: Support new timing mode for mmc2 clock

The MMC2 clock supports a new timing mode. When the new mode is active,
the output clock rate is halved.

This patch sets the feature flag for the new timing mode, and adds
a pre-divider based on the mode bit.

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>
drivers/clk/sunxi-ng/ccu-sun8i-a83t.c