common.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. u32 cpu_id;
  25. u32 jtag_id;
  26. void __iomem *jtag_id_base;
  27. struct davinci_id *ids;
  28. unsigned long ids_num;
  29. struct davinci_clk *cpu_clks;
  30. void __iomem **psc_bases;
  31. unsigned long psc_bases_num;
  32. };
  33. extern struct davinci_soc_info davinci_soc_info;
  34. extern void davinci_common_init(struct davinci_soc_info *soc_info);
  35. #endif /* __ARCH_ARM_MACH_DAVINCI_COMMON_H */