diff options
Diffstat (limited to 'arch/arm/mach-omap2/clock3517.c')
-rw-r--r-- | arch/arm/mach-omap2/clock3517.c | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/arch/arm/mach-omap2/clock3517.c b/arch/arm/mach-omap2/clock3517.c index 2e97d08f0e56..4d79ae2c0241 100644 --- a/arch/arm/mach-omap2/clock3517.c +++ b/arch/arm/mach-omap2/clock3517.c | |||
@@ -21,11 +21,9 @@ | |||
21 | #include <linux/clk.h> | 21 | #include <linux/clk.h> |
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | 23 | ||
24 | #include <plat/clock.h> | ||
25 | |||
26 | #include "clock.h" | 24 | #include "clock.h" |
27 | #include "clock3517.h" | 25 | #include "clock3517.h" |
28 | #include "cm2xxx_3xxx.h" | 26 | #include "cm3xxx.h" |
29 | #include "cm-regbits-34xx.h" | 27 | #include "cm-regbits-34xx.h" |
30 | 28 | ||
31 | /* | 29 | /* |
@@ -49,7 +47,7 @@ | |||
49 | * in the enable register itsel at a bit offset of 4 from the enable | 47 | * in the enable register itsel at a bit offset of 4 from the enable |
50 | * bit. A value of 1 indicates that clock is enabled. | 48 | * bit. A value of 1 indicates that clock is enabled. |
51 | */ | 49 | */ |
52 | static void am35xx_clk_find_idlest(struct clk *clk, | 50 | static void am35xx_clk_find_idlest(struct clk_hw_omap *clk, |
53 | void __iomem **idlest_reg, | 51 | void __iomem **idlest_reg, |
54 | u8 *idlest_bit, | 52 | u8 *idlest_bit, |
55 | u8 *idlest_val) | 53 | u8 *idlest_val) |
@@ -73,8 +71,9 @@ static void am35xx_clk_find_idlest(struct clk *clk, | |||
73 | * associate this type of code with per-module data structures to | 71 | * associate this type of code with per-module data structures to |
74 | * avoid this issue, and remove the casts. No return value. | 72 | * avoid this issue, and remove the casts. No return value. |
75 | */ | 73 | */ |
76 | static void am35xx_clk_find_companion(struct clk *clk, void __iomem **other_reg, | 74 | static void am35xx_clk_find_companion(struct clk_hw_omap *clk, |
77 | u8 *other_bit) | 75 | void __iomem **other_reg, |
76 | u8 *other_bit) | ||
78 | { | 77 | { |
79 | *other_reg = (__force void __iomem *)(clk->enable_reg); | 78 | *other_reg = (__force void __iomem *)(clk->enable_reg); |
80 | if (clk->enable_bit & AM35XX_IPSS_ICK_MASK) | 79 | if (clk->enable_bit & AM35XX_IPSS_ICK_MASK) |
@@ -82,10 +81,7 @@ static void am35xx_clk_find_companion(struct clk *clk, void __iomem **other_reg, | |||
82 | else | 81 | else |
83 | *other_bit = clk->enable_bit - AM35XX_IPSS_ICK_FCK_OFFSET; | 82 | *other_bit = clk->enable_bit - AM35XX_IPSS_ICK_FCK_OFFSET; |
84 | } | 83 | } |
85 | 84 | const struct clk_hw_omap_ops clkhwops_am35xx_ipss_module_wait = { | |
86 | const struct clkops clkops_am35xx_ipss_module_wait = { | ||
87 | .enable = omap2_dflt_clk_enable, | ||
88 | .disable = omap2_dflt_clk_disable, | ||
89 | .find_idlest = am35xx_clk_find_idlest, | 85 | .find_idlest = am35xx_clk_find_idlest, |
90 | .find_companion = am35xx_clk_find_companion, | 86 | .find_companion = am35xx_clk_find_companion, |
91 | }; | 87 | }; |
@@ -101,7 +97,7 @@ const struct clkops clkops_am35xx_ipss_module_wait = { | |||
101 | * CM_{I,F}CLKEN bit. Pass back the correct info via @idlest_reg | 97 | * CM_{I,F}CLKEN bit. Pass back the correct info via @idlest_reg |
102 | * and @idlest_bit. No return value. | 98 | * and @idlest_bit. No return value. |
103 | */ | 99 | */ |
104 | static void am35xx_clk_ipss_find_idlest(struct clk *clk, | 100 | static void am35xx_clk_ipss_find_idlest(struct clk_hw_omap *clk, |
105 | void __iomem **idlest_reg, | 101 | void __iomem **idlest_reg, |
106 | u8 *idlest_bit, | 102 | u8 *idlest_bit, |
107 | u8 *idlest_val) | 103 | u8 *idlest_val) |
@@ -114,13 +110,9 @@ static void am35xx_clk_ipss_find_idlest(struct clk *clk, | |||
114 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; | 110 | *idlest_val = OMAP34XX_CM_IDLEST_VAL; |
115 | } | 111 | } |
116 | 112 | ||
117 | const struct clkops clkops_am35xx_ipss_wait = { | 113 | const struct clk_hw_omap_ops clkhwops_am35xx_ipss_wait = { |
118 | .enable = omap2_dflt_clk_enable, | ||
119 | .disable = omap2_dflt_clk_disable, | ||
120 | .find_idlest = am35xx_clk_ipss_find_idlest, | ||
121 | .find_companion = omap2_clk_dflt_find_companion, | ||
122 | .allow_idle = omap2_clkt_iclk_allow_idle, | 114 | .allow_idle = omap2_clkt_iclk_allow_idle, |
123 | .deny_idle = omap2_clkt_iclk_deny_idle, | 115 | .deny_idle = omap2_clkt_iclk_deny_idle, |
116 | .find_idlest = am35xx_clk_ipss_find_idlest, | ||
117 | .find_companion = omap2_clk_dflt_find_companion, | ||
124 | }; | 118 | }; |
125 | |||
126 | |||