commit | a5ebc3368ef7c77da5a03ad52834520a634a36ef | [log] [tgz] |
---|---|---|
author | Jernej Skrabec <jernej.skrabec@siol.net> | Wed Feb 14 21:08:56 2018 +0100 |
committer | Maxime Ripard <maxime.ripard@bootlin.com> | Thu Feb 15 14:40:24 2018 +0100 |
tree | 0997c61268d7a241b2c3036257de6793d0e535d8 | |
parent | d897ef56faf9bdb36e931251d0b70b10ebb03a14 [diff] |
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>