davinci: Encapsulate SoC-specific data in a structure
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / mach-davinci / include / mach / common.h
blob770a1baa97dc42b99f1acf47bdfd9528584265ec
1 /*
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
9 * or implied.
12 #ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H
13 #define __ARCH_ARM_MACH_DAVINCI_COMMON_H
15 struct sys_timer;
17 extern struct sys_timer davinci_timer;
19 extern void davinci_irq_init(void);
21 /* parameters describe VBUS sourcing for host mode */
22 extern void setup_usb(unsigned mA, unsigned potpgt_msec);
24 /* parameters describe VBUS sourcing for host mode */
25 extern void setup_usb(unsigned mA, unsigned potpgt_msec);
27 /* SoC specific init support */
28 struct davinci_soc_info {
29 struct map_desc *io_desc;
30 unsigned long io_desc_num;
33 extern struct davinci_soc_info davinci_soc_info;
35 extern void davinci_common_init(struct davinci_soc_info *soc_info);
36 extern void davinci_check_revision(void);
38 #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */