diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-04 16:24:00 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 06:38:41 -0500 |
commit | c1168dc31d8e0688168030ac66341897ed7ca32a (patch) | |
tree | 44d1e331bb70d0f305308aec0f60df9066e7946f /arch/arm/mach-omap2/clock24xx.h | |
parent | bc51da4ee46d481dc3fbc57ec407594b80e92705 (diff) |
[ARM] omap: don't use clkops_omap2_dflt_wait for non-ICLK/FCLK clocks
The original code in omap2_clk_wait_ready() used to check the low 8
bits to determine whether they were within the FCLKEN or ICLKEN
registers. Specifically, the test is satisfied when these offsets
are used:
CM_FCLKEN, CM_FCLKEN1, CM_CLKEN, OMAP24XX_CM_FCLKEN2, CM_ICLKEN,
CM_ICLKEN1, CM_ICLKEN2, CM_ICLKEN3, OMAP24XX_CM_ICLKEN4
OMAP3430_CM_CLKEN_PLL, OMAP3430ES2_CM_CLKEN2
If one of these offsets isn't used, omap2_clk_wait_ready() merely
returns without doing anything. So we should use the non-wait clkops
version instead and eliminate that conditional.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock24xx.h')
-rw-r--r-- | arch/arm/mach-omap2/clock24xx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/clock24xx.h b/arch/arm/mach-omap2/clock24xx.h index d386b3dfabae..486fd80143e4 100644 --- a/arch/arm/mach-omap2/clock24xx.h +++ b/arch/arm/mach-omap2/clock24xx.h | |||
@@ -890,7 +890,7 @@ static const struct clksel common_clkout_src_clksel[] = { | |||
890 | 890 | ||
891 | static struct clk sys_clkout_src = { | 891 | static struct clk sys_clkout_src = { |
892 | .name = "sys_clkout_src", | 892 | .name = "sys_clkout_src", |
893 | .ops = &clkops_omap2_dflt_wait, | 893 | .ops = &clkops_omap2_dflt, |
894 | .parent = &func_54m_ck, | 894 | .parent = &func_54m_ck, |
895 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | | 895 | .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | |
896 | RATE_PROPAGATES, | 896 | RATE_PROPAGATES, |
@@ -937,7 +937,7 @@ static struct clk sys_clkout = { | |||
937 | /* In 2430, new in 2420 ES2 */ | 937 | /* In 2430, new in 2420 ES2 */ |
938 | static struct clk sys_clkout2_src = { | 938 | static struct clk sys_clkout2_src = { |
939 | .name = "sys_clkout2_src", | 939 | .name = "sys_clkout2_src", |
940 | .ops = &clkops_omap2_dflt_wait, | 940 | .ops = &clkops_omap2_dflt, |
941 | .parent = &func_54m_ck, | 941 | .parent = &func_54m_ck, |
942 | .flags = CLOCK_IN_OMAP242X | RATE_PROPAGATES, | 942 | .flags = CLOCK_IN_OMAP242X | RATE_PROPAGATES, |
943 | .clkdm_name = "wkup_clkdm", | 943 | .clkdm_name = "wkup_clkdm", |
@@ -974,7 +974,7 @@ static struct clk sys_clkout2 = { | |||
974 | 974 | ||
975 | static struct clk emul_ck = { | 975 | static struct clk emul_ck = { |
976 | .name = "emul_ck", | 976 | .name = "emul_ck", |
977 | .ops = &clkops_omap2_dflt_wait, | 977 | .ops = &clkops_omap2_dflt, |
978 | .parent = &func_54m_ck, | 978 | .parent = &func_54m_ck, |
979 | .flags = CLOCK_IN_OMAP242X, | 979 | .flags = CLOCK_IN_OMAP242X, |
980 | .clkdm_name = "wkup_clkdm", | 980 | .clkdm_name = "wkup_clkdm", |