aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2013-10-22 04:47:08 -0400
committerMike Turquette <mturquette@linaro.org>2014-01-17 15:36:57 -0500
commit3ada6b10aaf2ff5c7dc6e8add6fdf1b7333d1b34 (patch)
tree477d264728d811e5c2738afb4ff2560bab71656a /arch/arm/mach-omap2/clock.h
parent6a67920811c23320aa25d94e5891d229eab506d9 (diff)
ARM: OMAP2+: clock: add support for indexed memmaps
Using indexed memmaps is required for isolating the actual memory access from the clock code. Now, the driver providing the support for the clock IP block provides the low level routines for reading/writing clock registers also. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/mach-omap2/clock.h')
-rw-r--r--arch/arm/mach-omap2/clock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h
index cbe5ff770ec4..bda767a9dea8 100644
--- a/arch/arm/mach-omap2/clock.h
+++ b/arch/arm/mach-omap2/clock.h
@@ -254,6 +254,9 @@ void omap2_clk_print_new_rates(const char *hfclkin_ck_name,
254 const char *core_ck_name, 254 const char *core_ck_name,
255 const char *mpu_ck_name); 255 const char *mpu_ck_name);
256 256
257u32 omap2_clk_readl(struct clk_hw_omap *clk, void __iomem *reg);
258void omap2_clk_writel(u32 val, struct clk_hw_omap *clk, void __iomem *reg);
259
257extern u16 cpu_mask; 260extern u16 cpu_mask;
258 261
259extern const struct clkops clkops_omap2_dflt_wait; 262extern const struct clkops clkops_omap2_dflt_wait;
@@ -288,6 +291,8 @@ extern const struct clksel_rate div_1_3_rates[];
288extern const struct clksel_rate div_1_4_rates[]; 291extern const struct clksel_rate div_1_4_rates[];
289extern const struct clksel_rate div31_1to31_rates[]; 292extern const struct clksel_rate div31_1to31_rates[];
290 293
294extern void __iomem *clk_memmaps[];
295
291extern int am33xx_clk_init(void); 296extern int am33xx_clk_init(void);
292 297
293extern int omap2_clkops_enable_clkdm(struct clk_hw *hw); 298extern int omap2_clkops_enable_clkdm(struct clk_hw *hw);