diff options
author | Tero Kristo <t-kristo@ti.com> | 2013-10-22 10:47:08 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-01-17 21:36:57 +0100 |
commit | 3ada6b10aaf2ff5c7dc6e8add6fdf1b7333d1b34 (patch) | |
tree | 477d264728d811e5c2738afb4ff2560bab71656a /arch/arm/mach-omap2/clock.h | |
parent | ARM: dts: am43xx clock data (diff) | |
download | linux-3ada6b10aaf2ff5c7dc6e8add6fdf1b7333d1b34.tar.xz linux-3ada6b10aaf2ff5c7dc6e8add6fdf1b7333d1b34.zip |
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.h | 5 |
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, const char *core_ck_name, const char *mpu_ck_name); +u32 omap2_clk_readl(struct clk_hw_omap *clk, void __iomem *reg); +void omap2_clk_writel(u32 val, struct clk_hw_omap *clk, void __iomem *reg); + extern u16 cpu_mask; extern const struct clkops clkops_omap2_dflt_wait; @@ -288,6 +291,8 @@ extern const struct clksel_rate div_1_3_rates[]; extern const struct clksel_rate div_1_4_rates[]; extern const struct clksel_rate div31_1to31_rates[]; +extern void __iomem *clk_memmaps[]; + extern int am33xx_clk_init(void); extern int omap2_clkops_enable_clkdm(struct clk_hw *hw); |