2 * Header for code common to all DaVinci machines.
4 * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
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
12 #ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H
13 #define __ARCH_ARM_MACH_DAVINCI_COMMON_H
17 extern struct sys_timer davinci_timer;
19 extern void davinci_irq_init(void);
20 extern void __iomem *davinci_intc_base;
22 /* parameters describe VBUS sourcing for host mode */
23 extern void setup_usb(unsigned mA, unsigned potpgt_msec);
25 /* parameters describe VBUS sourcing for host mode */
26 extern void setup_usb(unsigned mA, unsigned potpgt_msec);
28 /* SoC specific init support */
29 struct davinci_soc_info {
30 struct map_desc *io_desc;
31 unsigned long io_desc_num;
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;
46 unsigned long intc_irq_num;
49 extern struct davinci_soc_info davinci_soc_info;
51 extern void davinci_common_init(struct davinci_soc_info *soc_info);
53 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */