clk: sunxi-ng: sun50i: h6: Add 2x fixed post-divider to MMC module clocks
authorIcenowy Zheng <icenowy@aosc.io>
Mon, 20 Aug 2018 13:40:13 +0000 (21:40 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 5 Sep 2018 06:59:57 +0000 (08:59 +0200)
commitc2ff8383cc33c2d9c169e4daf1e37a434c3bb420
treef4397980f281aa068cfc55d050854f3bbd087d17
parenta528872dbb87faefda3056023eaaf83f14fdafdf
clk: sunxi-ng: sun50i: h6: Add 2x fixed post-divider to MMC module clocks

On the H6, the MMC module clocks are fixed in the new timing mode,
i.e. they do not have a bit to select the mode. These clocks have
a 2x divider somewhere between the clock and the MMC module.

To be consistent with other SoCs supporting the new timing mode,
we model the 2x divider as a fixed post-divider on the MMC module
clocks.

This patch adds the post-dividers to the MMC clocks, following the
approach on A64.

Fixes: 524353ea480b ("clk: sunxi-ng: add support for the Allwinner H6 CCU")
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/clk/sunxi-ng/ccu-sun50i-h6.c