generic.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * arch/arm/mach-spear13xx/include/mach/generic.h
  3. *
  4. * spear13xx machine family generic header file
  5. *
  6. * Copyright (C) 2012 ST Microelectronics
  7. * Viresh Kumar <viresh.linux@gmail.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/dmaengine.h>
  16. #include <asm/mach/time.h>
  17. /* Add spear13xx structure declarations here */
  18. extern void spear13xx_timer_init(void);
  19. extern struct pl022_ssp_controller pl022_plat_data;
  20. extern struct dw_dma_platform_data dmac_plat_data;
  21. extern struct dw_dma_slave cf_dma_priv;
  22. extern struct dw_dma_slave nand_read_dma_priv;
  23. extern struct dw_dma_slave nand_write_dma_priv;
  24. /* Add spear13xx family function declarations here */
  25. void __init spear_setup_of_timer(void);
  26. void __init spear13xx_map_io(void);
  27. void __init spear13xx_l2x0_init(void);
  28. bool dw_dma_filter(struct dma_chan *chan, void *slave);
  29. void spear_restart(char, const char *);
  30. void spear13xx_secondary_startup(void);
  31. void __cpuinit spear13xx_cpu_die(unsigned int cpu);
  32. extern struct smp_operations spear13xx_smp_ops;
  33. #ifdef CONFIG_MACH_SPEAR1310
  34. void __init spear1310_clk_init(void);
  35. #else
  36. static inline void spear1310_clk_init(void) {}
  37. #endif
  38. #ifdef CONFIG_MACH_SPEAR1340
  39. void __init spear1340_clk_init(void);
  40. #else
  41. static inline void spear1340_clk_init(void) {}
  42. #endif
  43. #endif /* __MACH_GENERIC_H */