diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-09-30 22:16:51 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2016-10-25 12:40:25 +0200 |
commit | 2beaa601c849e72683a2dd0fe6fd77763f19f051 (patch) | |
tree | 5c13edaa94dd1b5e876e8294c478d571826fde25 /drivers/clk/sunxi-ng/ccu_nm.c | |
parent | clk: sunxi-ng: Add minimums for all the relevant structures and clocks (diff) | |
download | wireguard-linux-2beaa601c849e72683a2dd0fe6fd77763f19f051.tar.xz wireguard-linux-2beaa601c849e72683a2dd0fe6fd77763f19f051.zip |
clk: sunxi-ng: Implement minimum for multipliers
Allow the CCU drivers to specify a multiplier for their clocks.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu_nm.c')
-rw-r--r-- | drivers/clk/sunxi-ng/ccu_nm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sunxi-ng/ccu_nm.c b/drivers/clk/sunxi-ng/ccu_nm.c index 1dae4f3ed00d..c9f3b6c982f0 100644 --- a/drivers/clk/sunxi-ng/ccu_nm.c +++ b/drivers/clk/sunxi-ng/ccu_nm.c @@ -93,7 +93,7 @@ static long ccu_nm_round_rate(struct clk_hw *hw, unsigned long rate, struct ccu_nm *nm = hw_to_ccu_nm(hw); struct _ccu_nm _nm; - _nm.min_n = 1; + _nm.min_n = nm->n.min; _nm.max_n = 1 << nm->n.width; _nm.min_m = 1; _nm.max_m = nm->m.max ?: 1 << nm->m.width; |