common.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. void s3c64xx_init_irq(u32 vic0, u32 vic1);
  19. void s3c64xx_init_io(struct map_desc *mach_desc, int size);
  20. void s3c64xx_register_clocks(unsigned long xtal, unsigned armclk_limit);
  21. void s3c64xx_setup_clocks(void);
  22. void s3c64xx_restart(char mode, const char *cmd);
  23. extern struct syscore_ops s3c64xx_irq_syscore_ops;
  24. #ifdef CONFIG_CPU_S3C6400
  25. extern int s3c6400_init(void);
  26. extern void s3c6400_init_irq(void);
  27. extern void s3c6400_map_io(void);
  28. extern void s3c6400_init_clocks(int xtal);
  29. #else
  30. #define s3c6400_init_clocks NULL
  31. #define s3c6400_map_io NULL
  32. #define s3c6400_init NULL
  33. #endif
  34. #ifdef CONFIG_CPU_S3C6410
  35. extern int s3c6410_init(void);
  36. extern void s3c6410_init_irq(void);
  37. extern void s3c6410_map_io(void);
  38. extern void s3c6410_init_clocks(int xtal);
  39. #else
  40. #define s3c6410_init_clocks NULL
  41. #define s3c6410_map_io NULL
  42. #define s3c6410_init NULL
  43. #endif
  44. #endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */