diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2017-08-12 20:43:51 +0800 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2017-08-14 22:45:06 +0800 |
commit | a6653773d6e5f077bdc6cdd2c57cecdcb908d035 (patch) | |
tree | e4d3fda8d5aefe7bc508040aa8a0b6ac2534943f /drivers/clk/sunxi-ng/ccu_nkm.h | |
parent | 721353c030a0d6f7b5e157dc2531da96b4dd73f3 (diff) | |
download | linux-stable-a6653773d6e5f077bdc6cdd2c57cecdcb908d035.tar.gz linux-stable-a6653773d6e5f077bdc6cdd2c57cecdcb908d035.tar.bz2 linux-stable-a6653773d6e5f077bdc6cdd2c57cecdcb908d035.zip |
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>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu_nkm.h')
-rw-r--r-- | drivers/clk/sunxi-ng/ccu_nkm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/sunxi-ng/ccu_nkm.h b/drivers/clk/sunxi-ng/ccu_nkm.h index 34580894f4d1..cc6efb70a102 100644 --- a/drivers/clk/sunxi-ng/ccu_nkm.h +++ b/drivers/clk/sunxi-ng/ccu_nkm.h @@ -34,6 +34,8 @@ struct ccu_nkm { struct ccu_div_internal m; struct ccu_mux_internal mux; + unsigned int fixed_post_div; + struct ccu_common common; }; |