common.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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_restart(enum reboot_mode mode, const char *cmd);
  22. struct device_node;
  23. void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
  24. unsigned long xusbxti_f, bool is_s3c6400, void __iomem *reg_base);
  25. void s3c64xx_set_xtal_freq(unsigned long freq);
  26. void s3c64xx_set_xusbxti_freq(unsigned long freq);
  27. #ifdef CONFIG_CPU_S3C6400
  28. extern int s3c6400_init(void);
  29. extern void s3c6400_init_irq(void);
  30. extern void s3c6400_map_io(void);
  31. #else
  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. #else
  40. #define s3c6410_map_io NULL
  41. #define s3c6410_init NULL
  42. #endif
  43. #ifdef CONFIG_S3C64XX_PL080
  44. extern struct pl08x_platform_data s3c64xx_dma0_plat_data;
  45. extern struct pl08x_platform_data s3c64xx_dma1_plat_data;
  46. #endif
  47. #endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */