aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/Makefile8
-rw-r--r--arch/arm/mach-omap2/clock.h26
-rw-r--r--arch/arm/mach-omap2/opp2xxx.h5
3 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 34c2867e0f63..f6f151c4f089 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -34,6 +34,10 @@ obj-$(CONFIG_ARCH_OMAP2420) += sram242x.o
34obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o 34obj-$(CONFIG_ARCH_OMAP2430) += sram243x.o
35obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o 35obj-$(CONFIG_ARCH_OMAP3) += sram34xx.o
36 36
37AFLAGS_sram242x.o :=-Wa,-march=armv6
38AFLAGS_sram243x.o :=-Wa,-march=armv6
39AFLAGS_sram34xx.o :=-Wa,-march=armv7-a
40
37# Pin multiplexing 41# Pin multiplexing
38obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o 42obj-$(CONFIG_ARCH_OMAP3) += mux34xx.o
39 43
@@ -47,6 +51,10 @@ obj-$(CONFIG_ARCH_OMAP2) += pm24xx.o
47obj-$(CONFIG_ARCH_OMAP24XX) += sleep24xx.o 51obj-$(CONFIG_ARCH_OMAP24XX) += sleep24xx.o
48obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o 52obj-$(CONFIG_ARCH_OMAP3) += pm34xx.o sleep34xx.o cpuidle34xx.o
49obj-$(CONFIG_PM_DEBUG) += pm-debug.o 53obj-$(CONFIG_PM_DEBUG) += pm-debug.o
54
55AFLAGS_sleep24xx.o :=-Wa,-march=armv6
56AFLAGS_sleep34xx.o :=-Wa,-march=armv7-a
57
50endif 58endif
51 59
52# PRCM 60# PRCM
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h
index 7bc344bcbb47..a6e85f46a65c 100644
--- a/arch/arm/mach-omap2/clock.h
+++ b/arch/arm/mach-omap2/clock.h
@@ -83,6 +83,32 @@ int omap2_clksel_set_parent(struct clk *clk, struct clk *new_parent);
83u32 omap2_get_dpll_rate(struct clk *clk); 83u32 omap2_get_dpll_rate(struct clk *clk);
84void omap2_init_dpll_parent(struct clk *clk); 84void omap2_init_dpll_parent(struct clk *clk);
85int omap2_wait_clock_ready(void __iomem *reg, u32 cval, const char *name); 85int omap2_wait_clock_ready(void __iomem *reg, u32 cval, const char *name);
86
87
88#ifdef CONFIG_ARCH_OMAP2
89void omap2xxx_clk_prepare_for_reboot(void);
90#else
91static inline void omap2xxx_clk_prepare_for_reboot(void)
92{
93}
94#endif
95
96#ifdef CONFIG_ARCH_OMAP3
97void omap3_clk_prepare_for_reboot(void);
98#else
99static inline void omap3_clk_prepare_for_reboot(void)
100{
101}
102#endif
103
104#ifdef CONFIG_ARCH_OMAP4
105void omap4_clk_prepare_for_reboot(void);
106#else
107static inline void omap4_clk_prepare_for_reboot(void)
108{
109}
110#endif
111
86int omap2_dflt_clk_enable(struct clk *clk); 112int omap2_dflt_clk_enable(struct clk *clk);
87void omap2_dflt_clk_disable(struct clk *clk); 113void omap2_dflt_clk_disable(struct clk *clk);
88void omap2_clk_dflt_find_companion(struct clk *clk, void __iomem **other_reg, 114void omap2_clk_dflt_find_companion(struct clk *clk, void __iomem **other_reg,
diff --git a/arch/arm/mach-omap2/opp2xxx.h b/arch/arm/mach-omap2/opp2xxx.h
index ed6df04e2f29..38b730550506 100644
--- a/arch/arm/mach-omap2/opp2xxx.h
+++ b/arch/arm/mach-omap2/opp2xxx.h
@@ -417,7 +417,12 @@ struct prcm_config {
417 417
418 418
419extern const struct prcm_config omap2420_rate_table[]; 419extern const struct prcm_config omap2420_rate_table[];
420
421#ifdef CONFIG_ARCH_OMAP2430
420extern const struct prcm_config omap2430_rate_table[]; 422extern const struct prcm_config omap2430_rate_table[];
423#else
424#define omap2430_rate_table NULL
425#endif
421extern const struct prcm_config *rate_table; 426extern const struct prcm_config *rate_table;
422extern const struct prcm_config *curr_prcm_set; 427extern const struct prcm_config *curr_prcm_set;
423 428