Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 //
0003 // Samsung's S3C2416 flattened device tree enabled machine
0004 //
0005 // Copyright (c) 2012 Heiko Stuebner <heiko@sntech.de>
0006 //
0007 // based on mach-exynos/mach-exynos4-dt.c
0008 //
0009 // Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
0010 //      http://www.samsung.com
0011 // Copyright (c) 2010-2011 Linaro Ltd.
0012 //      www.linaro.org
0013 
0014 #include <linux/clocksource.h>
0015 #include <linux/irqchip.h>
0016 #include <linux/serial_s3c.h>
0017 
0018 #include <asm/mach/arch.h>
0019 #include "map.h"
0020 
0021 #include "cpu.h"
0022 #include "pm.h"
0023 
0024 #include "s3c24xx.h"
0025 
0026 static void __init s3c2416_dt_map_io(void)
0027 {
0028     s3c24xx_init_io(NULL, 0);
0029 }
0030 
0031 static void __init s3c2416_dt_machine_init(void)
0032 {
0033     s3c_pm_init();
0034 }
0035 
0036 static const char *const s3c2416_dt_compat[] __initconst = {
0037     "samsung,s3c2416",
0038     "samsung,s3c2450",
0039     NULL
0040 };
0041 
0042 DT_MACHINE_START(S3C2416_DT, "Samsung S3C2416 (Flattened Device Tree)")
0043     /* Maintainer: Heiko Stuebner <heiko@sntech.de> */
0044     .dt_compat  = s3c2416_dt_compat,
0045     .map_io     = s3c2416_dt_map_io,
0046     .init_irq   = irqchip_init,
0047     .init_machine   = s3c2416_dt_machine_init,
0048 MACHINE_END