generic.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /* Add spear3xx family device structure declarations here */
  22. extern struct sys_timer spear3xx_timer;
  23. extern struct pl022_ssp_controller pl022_plat_data;
  24. extern struct pl08x_platform_data pl080_plat_data;
  25. /* Add spear3xx family function declarations here */
  26. void __init spear_setup_timer(resource_size_t base, int irq);
  27. void __init spear3xx_map_io(void);
  28. void __init spear3xx_dt_init_irq(void);
  29. void spear_restart(char, const char *);
  30. /* spear300 declarations */
  31. #ifdef CONFIG_MACH_SPEAR300
  32. void __init spear300_clk_init(void);
  33. #endif /* CONFIG_MACH_SPEAR300 */
  34. /* spear310 declarations */
  35. #ifdef CONFIG_MACH_SPEAR310
  36. void __init spear310_clk_init(void);
  37. #endif /* CONFIG_MACH_SPEAR310 */
  38. /* spear320 declarations */
  39. #ifdef CONFIG_MACH_SPEAR320
  40. void __init spear320_clk_init(void);
  41. #endif /* CONFIG_MACH_SPEAR320 */
  42. #endif /* __MACH_GENERIC_H */