OMAP2xxx clock: move sys_clk code into mach-omap2/clkt2xxx_sys.c
authorPaul Walmsley <paul@pwsan.com>
Wed, 27 Jan 2010 03:13:08 +0000 (20:13 -0700)
committerPaul Walmsley <paul@pwsan.com>
Fri, 29 Jan 2010 01:13:49 +0000 (18:13 -0700)
commit44da0a51032f3d90a441bd80c2efe68532104980
tree25f119597684c1d7ce2a2525d6f3c3c2c0fc4053
parent87a1b26c2d31dce62758b78c077ff5a1b5a52ab8
OMAP2xxx clock: move sys_clk code into mach-omap2/clkt2xxx_sys.c

Move the sys_clk clock functions from clock2xxx.c to
mach-omap2/clkt2xxx_sys.c.  This is intended to make the clock code
easier to understand, since all of the functions needed to manage the
sys_clk are now located in their own file, rather than being mixed
with other, unrelated functions.

Clock debugging is also now more finely-grained, since the DEBUG
macro can now be defined for the sys_clk clock alone.  This
should reduce unnecessary console noise when debugging.

Also, if at some future point the mach-omap2/ directory is split into
OMAP2/3/4 variants, this clkt file can be placed in the mach-omap2xxx/
directory, rather than shared with other chip types that don't use
this clock type.

Thanks to Alexander Shishkin <virtuoso@slind.org> for his comments to
improve the patch description.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Alexander Shishkin <virtuoso@slind.org>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/clkt2xxx_sys.c [new file with mode: 0644]
arch/arm/mach-omap2/clock2xxx.c
arch/arm/mach-omap2/clock2xxx.h
arch/arm/mach-omap2/clock2xxx_data.c