mach-s3c2416-dt.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Samsung's S3C2416 flattened device tree enabled machine
  3. *
  4. * Copyright (c) 2012 Heiko Stuebner <heiko@sntech.de>
  5. *
  6. * based on mach-exynos/mach-exynos4-dt.c
  7. *
  8. * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
  9. * http://www.samsung.com
  10. * Copyright (c) 2010-2011 Linaro Ltd.
  11. * www.linaro.org
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License version 2 as
  15. * published by the Free Software Foundation.
  16. */
  17. #include <linux/clocksource.h>
  18. #include <linux/irqchip.h>
  19. #include <linux/serial_s3c.h>
  20. #include <asm/mach/arch.h>
  21. #include <mach/map.h>
  22. #include <plat/cpu.h>
  23. #include <plat/pm.h>
  24. #include "common.h"
  25. static void __init s3c2416_dt_map_io(void)
  26. {
  27. s3c24xx_init_io(NULL, 0);
  28. }
  29. static void __init s3c2416_dt_machine_init(void)
  30. {
  31. s3c_pm_init();
  32. }
  33. static const char *const s3c2416_dt_compat[] __initconst = {
  34. "samsung,s3c2416",
  35. "samsung,s3c2450",
  36. NULL
  37. };
  38. DT_MACHINE_START(S3C2416_DT, "Samsung S3C2416 (Flattened Device Tree)")
  39. /* Maintainer: Heiko Stuebner <heiko@sntech.de> */
  40. .dt_compat = s3c2416_dt_compat,
  41. .map_io = s3c2416_dt_map_io,
  42. .init_irq = irqchip_init,
  43. .init_machine = s3c2416_dt_machine_init,
  44. MACHINE_END