common.h 649 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * This file contains common function prototypes to avoid externs in the c files.
  3. *
  4. * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. #ifndef __MACH_PRIMA2_COMMON_H__
  9. #define __MACH_PRIMA2_COMMON_H__
  10. #include <linux/init.h>
  11. #include <asm/mach/time.h>
  12. extern struct sys_timer sirfsoc_timer;
  13. extern void __init sirfsoc_of_irq_init(void);
  14. extern void __init sirfsoc_of_clk_init(void);
  15. extern void sirfsoc_restart(char, const char *);
  16. #ifndef CONFIG_DEBUG_LL
  17. static inline void sirfsoc_map_lluart(void) {}
  18. #else
  19. extern void __init sirfsoc_map_lluart(void);
  20. #endif
  21. #endif