]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/arm/mach-davinci/include/mach/common.h
davinci: Move interrupt ctlr info to SoC infrastructure
[karo-tx-linux.git] / arch / arm / mach-davinci / include / mach / common.h
1 /*
2  * Header for code common to all DaVinci machines.
3  *
4  * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
5  *
6  * 2007 (c) MontaVista Software, Inc. This file is licensed under
7  * the terms of the GNU General Public License version 2. This program
8  * is licensed "as is" without any warranty of any kind, whether express
9  * or implied.
10  */
11
12 #ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H
13 #define __ARCH_ARM_MACH_DAVINCI_COMMON_H
14
15 struct sys_timer;
16
17 extern struct sys_timer davinci_timer;
18
19 extern void davinci_irq_init(void);
20 extern void __iomem *davinci_intc_base;
21
22 /* parameters describe VBUS sourcing for host mode */
23 extern void setup_usb(unsigned mA, unsigned potpgt_msec);
24
25 /* parameters describe VBUS sourcing for host mode */
26 extern void setup_usb(unsigned mA, unsigned potpgt_msec);
27
28 /* SoC specific init support */
29 struct davinci_soc_info {
30         struct map_desc                 *io_desc;
31         unsigned long                   io_desc_num;
32         u32                             cpu_id;
33         u32                             jtag_id;
34         void __iomem                    *jtag_id_base;
35         struct davinci_id               *ids;
36         unsigned long                   ids_num;
37         struct davinci_clk              *cpu_clks;
38         void __iomem                    **psc_bases;
39         unsigned long                   psc_bases_num;
40         void __iomem                    *pinmux_base;
41         const struct mux_config         *pinmux_pins;
42         unsigned long                   pinmux_pins_num;
43         void __iomem                    *intc_base;
44         int                             intc_type;
45         u8                              *intc_irq_prios;
46         unsigned long                   intc_irq_num;
47 };
48
49 extern struct davinci_soc_info davinci_soc_info;
50
51 extern void davinci_common_init(struct davinci_soc_info *soc_info);
52
53 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */