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 struct davinci_timer_instance {
34 struct davinci_timer_info {
35 struct davinci_timer_instance *timers;
36 unsigned int clockevent_id;
37 unsigned int clocksource_id;
40 /* SoC specific init support */
41 struct davinci_soc_info {
42 struct map_desc *io_desc;
43 unsigned long io_desc_num;
46 void __iomem *jtag_id_base;
47 struct davinci_id *ids;
48 unsigned long ids_num;
49 struct davinci_clk *cpu_clks;
50 void __iomem **psc_bases;
51 unsigned long psc_bases_num;
52 void __iomem *pinmux_base;
53 const struct mux_config *pinmux_pins;
54 unsigned long pinmux_pins_num;
55 void __iomem *intc_base;
58 unsigned long intc_irq_num;
59 struct davinci_timer_info *timer_info;
60 void __iomem *wdt_base;
63 extern struct davinci_soc_info davinci_soc_info;
65 extern void davinci_common_init(struct davinci_soc_info *soc_info);
67 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */