common.h (1e6cb146c39cdef1ffc340c13637fce2ba5575be) common.h (a920360f038e976e7a86b002e209402da20e9147)
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 *

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

47#ifdef CONFIG_ARCH_OMAP3
48extern void omap34xx_map_common_io(void);
49#else
50static inline void omap34xx_map_common_io(void)
51{
52}
53#endif
54
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 *

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

47#ifdef CONFIG_ARCH_OMAP3
48extern void omap34xx_map_common_io(void);
49#else
50static inline void omap34xx_map_common_io(void)
51{
52}
53#endif
54
55#ifdef CONFIG_SOC_OMAPTI816X
56extern void omapti816x_map_common_io(void);
55#ifdef CONFIG_SOC_OMAPTI81XX
56extern void omapti81xx_map_common_io(void);
57#else
57#else
58static inline void omapti816x_map_common_io(void)
58static inline void omapti81xx_map_common_io(void)
59{
60}
61#endif
62
63#ifdef CONFIG_SOC_OMAPAM33XX
64extern void omapam33xx_map_common_io(void);
65#else
66static inline void omapam33xx_map_common_io(void)

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

85
86void omap2420_init_early(void);
87void omap2430_init_early(void);
88void omap3430_init_early(void);
89void omap35xx_init_early(void);
90void omap3630_init_early(void);
91void omap3_init_early(void); /* Do not use this one */
92void am35xx_init_early(void);
59{
60}
61#endif
62
63#ifdef CONFIG_SOC_OMAPAM33XX
64extern void omapam33xx_map_common_io(void);
65#else
66static inline void omapam33xx_map_common_io(void)

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

85
86void omap2420_init_early(void);
87void omap2430_init_early(void);
88void omap3430_init_early(void);
89void omap35xx_init_early(void);
90void omap3630_init_early(void);
91void omap3_init_early(void); /* Do not use this one */
92void am35xx_init_early(void);
93void ti816x_init_early(void);
93void ti81xx_init_early(void);
94void omap4430_init_early(void);
95
96/*
97 * IO bases for various OMAP processors
98 * Except the tap base, rest all the io bases
99 * listed are physical addresses.
100 */
101struct omap_globals {

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

109 void __iomem *cm; /* Clock Management */
110 void __iomem *cm2;
111};
112
113void omap2_set_globals_242x(void);
114void omap2_set_globals_243x(void);
115void omap2_set_globals_3xxx(void);
116void omap2_set_globals_443x(void);
94void omap4430_init_early(void);
95
96/*
97 * IO bases for various OMAP processors
98 * Except the tap base, rest all the io bases
99 * listed are physical addresses.
100 */
101struct omap_globals {

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

109 void __iomem *cm; /* Clock Management */
110 void __iomem *cm2;
111};
112
113void omap2_set_globals_242x(void);
114void omap2_set_globals_243x(void);
115void omap2_set_globals_3xxx(void);
116void omap2_set_globals_443x(void);
117void omap2_set_globals_ti816x(void);
117void omap2_set_globals_ti81xx(void);
118void omap2_set_globals_am33xx(void);
119
120/* These get called from omap2_set_globals_xxxx(), do not call these */
121void omap2_set_globals_tap(struct omap_globals *);
122void omap2_set_globals_sdrc(struct omap_globals *);
123void omap2_set_globals_control(struct omap_globals *);
124void omap2_set_globals_prcm(struct omap_globals *);
125
126void omap242x_map_io(void);
127void omap243x_map_io(void);
128void omap3_map_io(void);
129void am33xx_map_io(void);
130void omap4_map_io(void);
118void omap2_set_globals_am33xx(void);
119
120/* These get called from omap2_set_globals_xxxx(), do not call these */
121void omap2_set_globals_tap(struct omap_globals *);
122void omap2_set_globals_sdrc(struct omap_globals *);
123void omap2_set_globals_control(struct omap_globals *);
124void omap2_set_globals_prcm(struct omap_globals *);
125
126void omap242x_map_io(void);
127void omap243x_map_io(void);
128void omap3_map_io(void);
129void am33xx_map_io(void);
130void omap4_map_io(void);
131void ti81xx_map_io(void);
131
132/**
133 * omap_test_timeout - busy-loop, testing a condition
134 * @cond: condition to test until it evaluates to true
135 * @timeout: maximum number of microseconds in the timeout
136 * @index: loop index (integer)
137 *
138 * Loop waiting for @cond to become true or until at least @timeout

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

151
152extern struct device *omap2_get_mpuss_device(void);
153extern struct device *omap2_get_iva_device(void);
154extern struct device *omap2_get_l3_device(void);
155extern struct device *omap4_get_dsp_device(void);
156
157void omap2_init_irq(void);
158void omap3_init_irq(void);
132
133/**
134 * omap_test_timeout - busy-loop, testing a condition
135 * @cond: condition to test until it evaluates to true
136 * @timeout: maximum number of microseconds in the timeout
137 * @index: loop index (integer)
138 *
139 * Loop waiting for @cond to become true or until at least @timeout

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

152
153extern struct device *omap2_get_mpuss_device(void);
154extern struct device *omap2_get_iva_device(void);
155extern struct device *omap2_get_l3_device(void);
156extern struct device *omap4_get_dsp_device(void);
157
158void omap2_init_irq(void);
159void omap3_init_irq(void);
159void ti816x_init_irq(void);
160void ti81xx_init_irq(void);
160extern int omap_irq_pending(void);
161void omap_intc_save_context(void);
162void omap_intc_restore_context(void);
163void omap3_intc_suspend(void);
164void omap3_intc_prepare_idle(void);
165void omap3_intc_resume_idle(void);
166void omap2_intc_handle_irq(struct pt_regs *regs);
167void omap3_intc_handle_irq(struct pt_regs *regs);

--- 28 unchanged lines hidden ---
161extern int omap_irq_pending(void);
162void omap_intc_save_context(void);
163void omap_intc_restore_context(void);
164void omap3_intc_suspend(void);
165void omap3_intc_prepare_idle(void);
166void omap3_intc_resume_idle(void);
167void omap2_intc_handle_irq(struct pt_regs *regs);
168void omap3_intc_handle_irq(struct pt_regs *regs);

--- 28 unchanged lines hidden ---