diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2018-02-14 23:08:56 +0300 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-02-15 16:40:24 +0300 |
commit | a5ebc3368ef7c77da5a03ad52834520a634a36ef (patch) | |
tree | 0997c61268d7a241b2c3036257de6793d0e535d8 /drivers/clk/sunxi-ng/ccu_nkm.h | |
parent | d897ef56faf9bdb36e931251d0b70b10ebb03a14 (diff) | |
download | linux-a5ebc3368ef7c77da5a03ad52834520a634a36ef.tar.xz |
clk: sunxi-ng: Use u64 for calculation of nkmp rate
When parent rate is 24MHz and multiplier N >= 180, intermediate clock
rate doesn't fit in 32 bit variable anymore.
Because of that, introduce function for calculating clock rate which
uses 64 bit variable for intermediate result.
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'drivers/clk/sunxi-ng/ccu_nkm.h')
0 files changed, 0 insertions, 0 deletions