clk: sunxi: make factors clock mux mask configurable
authorChen-Yu Tsai <wens@csie.org>
Mon, 20 Oct 2014 14:10:26 +0000 (22:10 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 21 Oct 2014 19:40:56 +0000 (21:40 +0200)
Some of the factors-style clocks on the A80 have different widths
for the mux values in the registers.

Add a .muxmask field to clk_factors_config to make it configurable.
Passing a bitmask instead of a width parameter will allow reuse
in case we support table-based muxes in the future.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

No differences found