common.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef __ARCH_ARM_MACH_DAVINCI_COMMON_H
  12. #define __ARCH_ARM_MACH_DAVINCI_COMMON_H
  13. struct sys_timer;
  14. extern struct sys_timer davinci_timer;
  15. extern void davinci_irq_init(void);
  16. /* parameters describe VBUS sourcing for host mode */
  17. extern void setup_usb(unsigned mA, unsigned potpgt_msec);
  18. /* parameters describe VBUS sourcing for host mode */
  19. extern void setup_usb(unsigned mA, unsigned potpgt_msec);
  20. /* SoC specific init support */
  21. struct davinci_soc_info {
  22. struct map_desc *io_desc;
  23. unsigned long io_desc_num;
  24. };
  25. extern struct davinci_soc_info davinci_soc_info;
  26. extern void davinci_common_init(struct davinci_soc_info *soc_info);
  27. extern void davinci_check_revision(void);
  28. #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */