generic.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * arch/arm/mach-spear3xx/generic.h
  3. *
  4. * SPEAr3XX machine family generic header file
  5. *
  6. * Copyright (C) 2009 ST Microelectronics
  7. * Viresh Kumar<viresh.kumar@st.com>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #ifndef __MACH_GENERIC_H
  14. #define __MACH_GENERIC_H
  15. #include <linux/amba/pl08x.h>
  16. #include <linux/init.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/amba/bus.h>
  19. #include <asm/mach/time.h>
  20. #include <asm/mach/map.h>
  21. /* spear3xx declarations */
  22. /*
  23. * Each GPT has 2 timer channels
  24. * Following GPT channels will be used as clock source and clockevent
  25. */
  26. #define SPEAR_GPT0_BASE SPEAR3XX_ML1_TMR_BASE
  27. #define SPEAR_GPT0_CHAN0_IRQ SPEAR3XX_IRQ_CPU_GPT1_1
  28. #define SPEAR_GPT0_CHAN1_IRQ SPEAR3XX_IRQ_CPU_GPT1_2
  29. /* Add spear3xx family device structure declarations here */
  30. extern struct sys_timer spear3xx_timer;
  31. extern struct pl022_ssp_controller pl022_plat_data;
  32. extern struct pl08x_platform_data pl080_plat_data;
  33. /* Add spear3xx family function declarations here */
  34. void __init spear_setup_timer(void);
  35. void __init spear3xx_clk_init(void);
  36. void __init spear3xx_map_io(void);
  37. void __init spear3xx_dt_init_irq(void);
  38. void spear_restart(char, const char *);
  39. #endif /* __MACH_GENERIC_H */