mach-s3c2416-dt.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // SPDX-License-Identifier: GPL-2.0
  2. //
  3. // Samsung's S3C2416 flattened device tree enabled machine
  4. //
  5. // Copyright (c) 2012 Heiko Stuebner <[email protected]>
  6. //
  7. // based on mach-exynos/mach-exynos4-dt.c
  8. //
  9. // Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
  10. // http://www.samsung.com
  11. // Copyright (c) 2010-2011 Linaro Ltd.
  12. // www.linaro.org
  13. #include <linux/clocksource.h>
  14. #include <linux/irqchip.h>
  15. #include <linux/serial_s3c.h>
  16. #include <asm/mach/arch.h>
  17. #include "map.h"
  18. #include "cpu.h"
  19. #include "pm.h"
  20. #include "s3c24xx.h"
  21. static void __init s3c2416_dt_map_io(void)
  22. {
  23. s3c24xx_init_io(NULL, 0);
  24. }
  25. static void __init s3c2416_dt_machine_init(void)
  26. {
  27. s3c_pm_init();
  28. }
  29. static const char *const s3c2416_dt_compat[] __initconst = {
  30. "samsung,s3c2416",
  31. "samsung,s3c2450",
  32. NULL
  33. };
  34. DT_MACHINE_START(S3C2416_DT, "Samsung S3C2416 (Flattened Device Tree)")
  35. /* Maintainer: Heiko Stuebner <[email protected]> */
  36. .dt_compat = s3c2416_dt_compat,
  37. .map_io = s3c2416_dt_map_io,
  38. .init_irq = irqchip_init,
  39. .init_machine = s3c2416_dt_machine_init,
  40. MACHINE_END