]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: Move USB clocks to separate file
authorChen-Yu Tsai <wens@csie.org>
Tue, 27 Jan 2015 19:54:06 +0000 (03:54 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 23 Feb 2015 08:25:54 +0000 (09:25 +0100)
commitea3ddc1af95ada7c1437ed9777ca4f99a7ec3147
tree0ad1a6f758611cc7e9387ee324c49cf6c04ba52f
parent9cbe621030a9cce16d27329dac74fd4b1c1d9412
clk: sunxi: Move USB clocks to separate file

The USB clocks originally shared code with the gates clocks, but had
additional reset controllers. Move these to a separate file. This will
allow us to add new support for slightly different USB clocks, such as
on the A80, without affecting gates clocks, and also facilitate the
migration of gates clocks to a generic solution.

This also cleans up the USB clocks code slightly, such as adding
newlines, getting rid of the unused clkdev call, using a simple
u32 instead of BITMAP for the clock masks, using BIT() macro to
declare the clock bitmasks, and using of_io_request_and_map() to
get the I/O address.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/Makefile
drivers/clk/sunxi/clk-sunxi.c
drivers/clk/sunxi/clk-usb.c [new file with mode: 0644]