summaryrefslogtreecommitdiffstats
path: root/drivers/clk/sunxi-ng/ccu_nm.c
diff options
context:
space:
mode:
authorJernej Skrabec <jernej.skrabec@siol.net>2018-02-14 21:08:56 +0100
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-02-15 14:40:24 +0100
commita5ebc3368ef7c77da5a03ad52834520a634a36ef (patch)
tree0997c61268d7a241b2c3036257de6793d0e535d8 /drivers/clk/sunxi-ng/ccu_nm.c
parentclk: sunxi-ng: Mask nkmp factors when setting register (diff)
downloadlinux-a5ebc3368ef7c77da5a03ad52834520a634a36ef.tar.xz
linux-a5ebc3368ef7c77da5a03ad52834520a634a36ef.zip
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_nm.c')
0 files changed, 0 insertions, 0 deletions