]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: sunxi: Support factor clocks with N factor starting not from 0
authorChen-Yu Tsai <wens@csie.org>
Thu, 26 Jun 2014 15:55:41 +0000 (23:55 +0800)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Mar 2015 13:58:15 +0000 (14:58 +0100)
commitabe869119f1c7b62e773805416c7ac0d237f570e
tree3cf56edf811d80afb1ae27bac2e65578ec5c9989
parent9a0fb408e3294a4a9e058567f21163c024f67269
clk: sunxi: Support factor clocks with N factor starting not from 0

commit 9a5e6c7eb5ccbb5f0d3a1dffce135f0a727f40e1 upstream.

The PLLs on newer Allwinner SoC's, such as the A31 and A23, have a
N multiplier factor that starts from 1, not 0.

This patch adds an option to the factor clk driver's config data
structures to specify the base value of N.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/clk/sunxi/clk-factors.c
drivers/clk/sunxi/clk-factors.h