diff options
author | Paul Walmsley <paul@pwsan.com> | 2010-01-26 22:13:08 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-01-28 20:13:49 -0500 |
commit | 44da0a51032f3d90a441bd80c2efe68532104980 (patch) | |
tree | 25f119597684c1d7ce2a2525d6f3c3c2c0fc4053 /arch/arm/mach-omap2/clock2xxx_data.c | |
parent | 87a1b26c2d31dce62758b78c077ff5a1b5a52ab8 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-omap2/clock2xxx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx_data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clock2xxx_data.c b/arch/arm/mach-omap2/clock2xxx_data.c index 402115fa9c12..3a435bb8f029 100644 --- a/arch/arm/mach-omap2/clock2xxx_data.c +++ b/arch/arm/mach-omap2/clock2xxx_data.c | |||
@@ -79,7 +79,7 @@ static struct clk sys_ck = { /* (*12, *13, 19.2, 26, 38.4)MHz */ | |||
79 | .ops = &clkops_null, | 79 | .ops = &clkops_null, |
80 | .parent = &osc_ck, | 80 | .parent = &osc_ck, |
81 | .clkdm_name = "wkup_clkdm", | 81 | .clkdm_name = "wkup_clkdm", |
82 | .recalc = &omap2_sys_clk_recalc, | 82 | .recalc = &omap2xxx_sys_clk_recalc, |
83 | }; | 83 | }; |
84 | 84 | ||
85 | static struct clk alt_ck = { /* Typical 54M or 48M, may not exist */ | 85 | static struct clk alt_ck = { /* Typical 54M or 48M, may not exist */ |
@@ -2264,7 +2264,7 @@ int __init omap2_clk_init(void) | |||
2264 | 2264 | ||
2265 | osc_ck.rate = omap2_osc_clk_recalc(&osc_ck); | 2265 | osc_ck.rate = omap2_osc_clk_recalc(&osc_ck); |
2266 | propagate_rate(&osc_ck); | 2266 | propagate_rate(&osc_ck); |
2267 | sys_ck.rate = omap2_sys_clk_recalc(&sys_ck); | 2267 | sys_ck.rate = omap2xxx_sys_clk_recalc(&sys_ck); |
2268 | propagate_rate(&sys_ck); | 2268 | propagate_rate(&sys_ck); |
2269 | 2269 | ||
2270 | for (c = omap24xx_clks; c < omap24xx_clks + ARRAY_SIZE(omap24xx_clks); c++) | 2270 | for (c = omap24xx_clks; c < omap24xx_clks + ARRAY_SIZE(omap24xx_clks); c++) |