generic.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * arch/arm/mach-spear6xx/include/mach/generic.h
  3. *
  4. * SPEAr6XX machine family specific generic header file
  5. *
  6. * Copyright (C) 2009 ST Microelectronics
  7. * Rajeev Kumar<rajeev-dlh.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/init.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/amba/bus.h>
  18. #include <asm/mach/time.h>
  19. #include <asm/mach/map.h>
  20. /*
  21. * Each GPT has 2 timer channels
  22. * Following GPT channels will be used as clock source and clockevent
  23. */
  24. #define SPEAR_GPT0_BASE SPEAR6XX_CPU_TMR_BASE
  25. #define SPEAR_GPT0_CHAN0_IRQ IRQ_CPU_GPT1_1
  26. #define SPEAR_GPT0_CHAN1_IRQ IRQ_CPU_GPT1_2
  27. /* Add spear6xx family device structure declarations here */
  28. extern struct amba_device gpio_device[];
  29. extern struct amba_device uart_device[];
  30. extern struct sys_timer spear6xx_timer;
  31. /* Add spear6xx family function declarations here */
  32. void __init spear_setup_timer(void);
  33. void __init spear6xx_map_io(void);
  34. void __init spear6xx_init_irq(void);
  35. void __init spear6xx_init(void);
  36. void __init spear600_init(void);
  37. void __init clk_init(void);
  38. /* Add spear600 machine device structure declarations here */
  39. #endif /* __MACH_GENERIC_H */