blob: ece1cd42738f7138a27759a7f1cc951de93d2353 [file] [log] [blame]
Kevin Hilman7c6337e2007-04-30 19:37:19 +01001/*
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
Kevin Hilmand0e47fb2009-04-14 11:30:11 -050019extern void davinci_irq_init(void);
Kevin Hilmand0e47fb2009-04-14 11:30:11 -050020
21/* parameters describe VBUS sourcing for host mode */
22extern void setup_usb(unsigned mA, unsigned potpgt_msec);
23
David Brownellcece6e52008-09-07 23:41:57 -070024/* parameters describe VBUS sourcing for host mode */
25extern void setup_usb(unsigned mA, unsigned potpgt_msec);
26
Mark A. Greer79c3c0b2009-04-15 12:38:58 -070027/* SoC specific init support */
28struct davinci_soc_info {
29 struct map_desc *io_desc;
30 unsigned long io_desc_num;
Mark A. Greerb9ab1272009-04-15 12:39:09 -070031 u32 cpu_id;
32 u32 jtag_id;
33 void __iomem *jtag_id_base;
34 struct davinci_id *ids;
35 unsigned long ids_num;
Mark A. Greer79c3c0b2009-04-15 12:38:58 -070036};
37
38extern struct davinci_soc_info davinci_soc_info;
39
40extern void davinci_common_init(struct davinci_soc_info *soc_info);
Mark A. Greer79c3c0b2009-04-15 12:38:58 -070041
Kevin Hilman7c6337e2007-04-30 19:37:19 +010042#endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */