clk: sunxi-ng: nkm: add support for fixed post-divider
authorIcenowy Zheng <icenowy@aosc.io>
Sat, 12 Aug 2017 12:43:51 +0000 (20:43 +0800)
committerChen-Yu Tsai <wens@csie.org>
Mon, 14 Aug 2017 14:45:06 +0000 (22:45 +0800)
commita6653773d6e5f077bdc6cdd2c57cecdcb908d035
treee4d3fda8d5aefe7bc508040aa8a0b6ac2534943f
parent721353c030a0d6f7b5e157dc2531da96b4dd73f3
clk: sunxi-ng: nkm: add support for fixed post-divider

SATA PLL on Allwinner R40 is of type (parent) * N * K / M / 6 where 6 is
the fixed post-divider.

Add post-divider support for NKM type clock.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
[wens@csie.org: Fixed application of post-divider in set_rate callback]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_nkm.c
drivers/clk/sunxi-ng/ccu_nkm.h