common.h (721c46bfc5dc5161b55e1f44948015f5beda8f3e) common.h (a282e5ef2954e0bc2740c0c8c278f777933cc4fb)
1/*
2 * Header for code common to all OMAP2+ machines.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *

--- 24 unchanged lines hidden (view full) ---

33#include <linux/platform_data/i2c-omap.h>
34#include <linux/reboot.h>
35#include <linux/irqchip/irq-omap-intc.h>
36
37#include <asm/proc-fns.h>
38#include <asm/hardware/cache-l2x0.h>
39
40#include "i2c.h"
1/*
2 * Header for code common to all OMAP2+ machines.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *

--- 24 unchanged lines hidden (view full) ---

33#include <linux/platform_data/i2c-omap.h>
34#include <linux/reboot.h>
35#include <linux/irqchip/irq-omap-intc.h>
36
37#include <asm/proc-fns.h>
38#include <asm/hardware/cache-l2x0.h>
39
40#include "i2c.h"
41#include "serial.h"
41
42
43#include "usb.h"
44
42#define OMAP_INTC_START NR_IRQS
43
44extern int (*omap_pm_soc_init)(void);
45int omap_pm_nop_init(void);
46
45#define OMAP_INTC_START NR_IRQS
46
47extern int (*omap_pm_soc_init)(void);
48int omap_pm_nop_init(void);
49
50#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP2)
51int omap2_pm_init(void);
52#else
53static inline int omap2_pm_init(void)
54{
55 return 0;
56}
57#endif
58
47#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3)
48int omap3_pm_init(void);
49#else
50static inline int omap3_pm_init(void)
51{
52 return 0;
53}
54#endif

--- 18 unchanged lines hidden (view full) ---

73int amx3_common_pm_init(void);
74#else
75static inline int amx3_common_pm_init(void)
76{
77 return 0;
78}
79#endif
80
59#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3)
60int omap3_pm_init(void);
61#else
62static inline int omap3_pm_init(void)
63{
64 return 0;
65}
66#endif

--- 18 unchanged lines hidden (view full) ---

85int amx3_common_pm_init(void);
86#else
87static inline int amx3_common_pm_init(void)
88{
89 return 0;
90}
91#endif
92
93extern void omap2_init_common_infrastructure(void);
94
95extern void omap_init_time(void);
96extern void omap3_secure_sync32k_timer_init(void);
97extern void omap3_gptimer_timer_init(void);
98extern void omap4_local_timer_init(void);
81#ifdef CONFIG_CACHE_L2X0
82int omap_l2_cache_init(void);
83#define OMAP_L2C_AUX_CTRL (L2C_AUX_CTRL_SHARED_OVERRIDE | \
84 L310_AUX_CTRL_DATA_PREFETCH | \
85 L310_AUX_CTRL_INSTR_PREFETCH)
86void omap4_l2c310_write_sec(unsigned long val, unsigned reg);
87#else
88static inline int omap_l2_cache_init(void)

--- 11 unchanged lines hidden (view full) ---

100static inline void omap5_realtime_timer_init(void)
101{
102}
103#endif
104
105void omap2420_init_early(void);
106void omap2430_init_early(void);
107void omap3430_init_early(void);
99#ifdef CONFIG_CACHE_L2X0
100int omap_l2_cache_init(void);
101#define OMAP_L2C_AUX_CTRL (L2C_AUX_CTRL_SHARED_OVERRIDE | \
102 L310_AUX_CTRL_DATA_PREFETCH | \
103 L310_AUX_CTRL_INSTR_PREFETCH)
104void omap4_l2c310_write_sec(unsigned long val, unsigned reg);
105#else
106static inline int omap_l2_cache_init(void)

--- 11 unchanged lines hidden (view full) ---

118static inline void omap5_realtime_timer_init(void)
119{
120}
121#endif
122
123void omap2420_init_early(void);
124void omap2430_init_early(void);
125void omap3430_init_early(void);
126void omap35xx_init_early(void);
108void omap3630_init_early(void);
127void omap3630_init_early(void);
128void omap3_init_early(void); /* Do not use this one */
109void am33xx_init_early(void);
110void am35xx_init_early(void);
111void ti814x_init_early(void);
112void ti816x_init_early(void);
113void am43xx_init_early(void);
114void am43xx_init_late(void);
115void omap4430_init_early(void);
116void omap5_init_early(void);
117void omap3_init_late(void);
118void omap4430_init_late(void);
129void am33xx_init_early(void);
130void am35xx_init_early(void);
131void ti814x_init_early(void);
132void ti816x_init_early(void);
133void am43xx_init_early(void);
134void am43xx_init_late(void);
135void omap4430_init_early(void);
136void omap5_init_early(void);
137void omap3_init_late(void);
138void omap4430_init_late(void);
139void omap2420_init_late(void);
140void omap2430_init_late(void);
119void ti81xx_init_late(void);
120void am33xx_init_late(void);
121void omap5_init_late(void);
141void ti81xx_init_late(void);
142void am33xx_init_late(void);
143void omap5_init_late(void);
144int omap2_common_pm_late_init(void);
122void dra7xx_init_early(void);
123void dra7xx_init_late(void);
124
125#ifdef CONFIG_SOC_BUS
126void omap_soc_device_init(void);
127#else
128static inline void omap_soc_device_init(void)
129{

--- 77 unchanged lines hidden (view full) ---

207({ \
208 for (index = 0; index < timeout; index++) { \
209 if (cond) \
210 break; \
211 udelay(1); \
212 } \
213})
214
145void dra7xx_init_early(void);
146void dra7xx_init_late(void);
147
148#ifdef CONFIG_SOC_BUS
149void omap_soc_device_init(void);
150#else
151static inline void omap_soc_device_init(void)
152{

--- 77 unchanged lines hidden (view full) ---

230({ \
231 for (index = 0; index < timeout; index++) { \
232 if (cond) \
233 break; \
234 udelay(1); \
235 } \
236})
237
238extern struct device *omap2_get_mpuss_device(void);
239extern struct device *omap2_get_iva_device(void);
240extern struct device *omap2_get_l3_device(void);
241extern struct device *omap4_get_dsp_device(void);
242
215void omap_gic_of_init(void);
216
217#ifdef CONFIG_CACHE_L2X0
218extern void __iomem *omap4_get_l2cache_base(void);
219#endif
220
221struct device_node;
222

--- 28 unchanged lines hidden (view full) ---

251
252extern const struct smp_operations omap4_smp_ops;
253#endif
254
255extern u32 omap4_get_cpu1_ns_pa_addr(void);
256
257#if defined(CONFIG_SMP) && defined(CONFIG_PM)
258extern int omap4_mpuss_init(void);
243void omap_gic_of_init(void);
244
245#ifdef CONFIG_CACHE_L2X0
246extern void __iomem *omap4_get_l2cache_base(void);
247#endif
248
249struct device_node;
250

--- 28 unchanged lines hidden (view full) ---

279
280extern const struct smp_operations omap4_smp_ops;
281#endif
282
283extern u32 omap4_get_cpu1_ns_pa_addr(void);
284
285#if defined(CONFIG_SMP) && defined(CONFIG_PM)
286extern int omap4_mpuss_init(void);
259extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state);
287extern int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state,
288 bool rcuidle);
260extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state);
261#else
262static inline int omap4_enter_lowpower(unsigned int cpu,
289extern int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state);
290#else
291static inline int omap4_enter_lowpower(unsigned int cpu,
263 unsigned int power_state)
292 unsigned int power_state,
293 bool rcuidle)
264{
265 cpu_do_idle();
266 return 0;
267}
268
269static inline int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state)
270{
271 cpu_do_idle();

--- 76 unchanged lines hidden ---
294{
295 cpu_do_idle();
296 return 0;
297}
298
299static inline int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state)
300{
301 cpu_do_idle();

--- 76 unchanged lines hidden ---