common.h (365480d67bfa6a3205708d20035abee4d422ee5b) common.h (ff999b8a0983ee15668394ed49e38d3568fc6859)
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 *

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

23 */
24
25#ifndef __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
26#define __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
27#ifndef __ASSEMBLER__
28
29#include <linux/irq.h>
30#include <linux/delay.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 *

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

23 */
24
25#ifndef __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
26#define __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H
27#ifndef __ASSEMBLER__
28
29#include <linux/irq.h>
30#include <linux/delay.h>
31#include <linux/i2c.h>
32#include <linux/i2c/twl.h>
31#include <linux/i2c/twl.h>
33#include <linux/i2c-omap.h>
34
35#include <asm/proc-fns.h>
36
32
33#include <asm/proc-fns.h>
34
37#include "../plat-omap/common.h"
35#include <plat/cpu.h>
36#include <plat/serial.h>
37#include <plat/common.h>
38
38
39#include "i2c.h"
40#include "serial.h"
41
42#include "usb.h"
43
44#define OMAP_INTC_START NR_IRQS
45
46#ifdef CONFIG_SOC_OMAP2420
47extern void omap242x_map_common_io(void);
48#else
49static inline void omap242x_map_common_io(void)
50{
51}

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

275#else
276static inline void __iomem *omap4_get_scu_base(void)
277{
278 return NULL;
279}
280#endif
281
282extern void __init gic_init_irq(void);
39#define OMAP_INTC_START NR_IRQS
40
41#ifdef CONFIG_SOC_OMAP2420
42extern void omap242x_map_common_io(void);
43#else
44static inline void omap242x_map_common_io(void)
45{
46}

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

270#else
271static inline void __iomem *omap4_get_scu_base(void)
272{
273 return NULL;
274}
275#endif
276
277extern void __init gic_init_irq(void);
278extern void gic_dist_disable(void);
283extern void omap_smc1(u32 fn, u32 arg);
284extern void __iomem *omap4_get_sar_ram_base(void);
285extern void omap_do_wfi(void);
286
287#ifdef CONFIG_SMP
288/* Needed for secondary core boot */
289extern void omap_secondary_startup(void);
279extern void omap_smc1(u32 fn, u32 arg);
280extern void __iomem *omap4_get_sar_ram_base(void);
281extern void omap_do_wfi(void);
282
283#ifdef CONFIG_SMP
284/* Needed for secondary core boot */
285extern void omap_secondary_startup(void);
286extern void omap_secondary_startup_4460(void);
290extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask);
291extern void omap_auxcoreboot_addr(u32 cpu_addr);
292extern u32 omap_read_auxcoreboot0(void);
293
294extern void omap4_cpu_die(unsigned int cpu);
295
296extern struct smp_operations omap4_smp_ops;
297

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

338}
339#endif
340
341struct omap_sdrc_params;
342extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0,
343 struct omap_sdrc_params *sdrc_cs1);
344struct omap2_hsmmc_info;
345extern int omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers);
287extern u32 omap_modify_auxcoreboot0(u32 set_mask, u32 clear_mask);
288extern void omap_auxcoreboot_addr(u32 cpu_addr);
289extern u32 omap_read_auxcoreboot0(void);
290
291extern void omap4_cpu_die(unsigned int cpu);
292
293extern struct smp_operations omap4_smp_ops;
294

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

335}
336#endif
337
338struct omap_sdrc_params;
339extern void omap_sdrc_init(struct omap_sdrc_params *sdrc_cs0,
340 struct omap_sdrc_params *sdrc_cs1);
341struct omap2_hsmmc_info;
342extern int omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers);
346extern void omap_reserve(void);
347
348#endif /* __ASSEMBLER__ */
349#endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */
343
344#endif /* __ASSEMBLER__ */
345#endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */