common.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  3. * http://www.samsung.com
  4. *
  5. * Copyright 2008 Openmoko, Inc.
  6. * Copyright 2008 Simtec Electronics
  7. * Ben Dooks <ben@simtec.co.uk>
  8. * http://armlinux.simtec.co.uk/
  9. *
  10. * Common Header for S3C64XX machines
  11. *
  12. * This program is free software; you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License version 2 as
  14. * published by the Free Software Foundation.
  15. */
  16. #ifndef __ARCH_ARM_MACH_S3C64XX_COMMON_H
  17. #define __ARCH_ARM_MACH_S3C64XX_COMMON_H
  18. #include <linux/reboot.h>
  19. void s3c64xx_init_irq(u32 vic0, u32 vic1);
  20. void s3c64xx_init_io(struct map_desc *mach_desc, int size);
  21. void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit);
  22. void s3c64xx_setup_clocks(void);
  23. void s3c64xx_restart(enum reboot_mode mode, const char *cmd);
  24. void s3c64xx_init_late(void);
  25. #ifdef CONFIG_CPU_S3C6400
  26. extern int s3c6400_init(void);
  27. extern void s3c6400_init_irq(void);
  28. extern void s3c6400_map_io(void);
  29. extern void s3c6400_init_clocks(int xtal);
  30. #else
  31. #define s3c6400_init_clocks NULL
  32. #define s3c6400_map_io NULL
  33. #define s3c6400_init NULL
  34. #endif
  35. #ifdef CONFIG_CPU_S3C6410
  36. extern int s3c6410_init(void);
  37. extern void s3c6410_init_irq(void);
  38. extern void s3c6410_map_io(void);
  39. extern void s3c6410_init_clocks(int xtal);
  40. #else
  41. #define s3c6410_init_clocks NULL
  42. #define s3c6410_map_io NULL
  43. #define s3c6410_init NULL
  44. #endif
  45. #ifdef CONFIG_PM
  46. int __init s3c64xx_pm_late_initcall(void);
  47. #else
  48. static inline int s3c64xx_pm_late_initcall(void) { return 0; }
  49. #endif
  50. #endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */