]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: Add a common setup function for mmc module clocks
authorChen-Yu Tsai <wens@csie.org>
Tue, 13 Jan 2015 01:37:23 +0000 (09:37 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 14 Jan 2015 16:26:03 +0000 (17:26 +0100)
commit9a5e6037401d13e11cab8db82f9e24a98e990810
tree4fcf9a13bbb3855d56c9fc45e1b1de1f47d20bae
parent6ca25ea68d9adf86149297bec8650584a485ef83
clk: sunxi: Add a common setup function for mmc module clocks

The only difference between module clocks on different platforms is the
width of the mux register bits and the valid values, which are passed in
through struct factors_data. The phase clocks parts are identical.

This patch generalizes the setup function, so most of the code can be
reused when adding sun9i support, which has a wider mux register.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-mod0.c