]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/arm/mach-davinci/include/mach/common.h
davinci: Move interrupt ctlr info to SoC infrastructure
[net-next-2.6.git] / arch / arm / mach-davinci / include / mach / common.h
CommitLineData
7c6337e2
KH
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
15struct sys_timer;
16
17extern struct sys_timer davinci_timer;
18
d0e47fba 19extern void davinci_irq_init(void);
673dd36f 20extern void __iomem *davinci_intc_base;
d0e47fba
KH
21
22/* parameters describe VBUS sourcing for host mode */
23extern void setup_usb(unsigned mA, unsigned potpgt_msec);
24
cece6e5a
DB
25/* parameters describe VBUS sourcing for host mode */
26extern void setup_usb(unsigned mA, unsigned potpgt_msec);
27
79c3c0b7
MG
28/* SoC specific init support */
29struct davinci_soc_info {
30 struct map_desc *io_desc;
31 unsigned long io_desc_num;
b9ab1279
MG
32 u32 cpu_id;
33 u32 jtag_id;
34 void __iomem *jtag_id_base;
35 struct davinci_id *ids;
36 unsigned long ids_num;
66e0c399 37 struct davinci_clk *cpu_clks;
d81d188c
MG
38 void __iomem **psc_bases;
39 unsigned long psc_bases_num;
0e585952
MG
40 void __iomem *pinmux_base;
41 const struct mux_config *pinmux_pins;
42 unsigned long pinmux_pins_num;
673dd36f
MG
43 void __iomem *intc_base;
44 int intc_type;
45 u8 *intc_irq_prios;
46 unsigned long intc_irq_num;
79c3c0b7
MG
47};
48
49extern struct davinci_soc_info davinci_soc_info;
50
51extern void davinci_common_init(struct davinci_soc_info *soc_info);
79c3c0b7 52
7c6337e2 53#endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */