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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 12:22:34 +0000 (13:22 +0100)
commit6e6493c26e176987bf215625ebcaea5954a05fa1
tree335f6dd381348c9a9391d2bd6df2248f576c7c4e
parent28e75102ed1fbc6529751865b6b12070cb161b8d
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/sunxi/clk-factors.c
drivers/clk/sunxi/clk-factors.h