1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (C) 2008-2009 Samsung Electronics
5 #include <linux/kernel.h>
6 #include <linux/types.h>
7 #include <linux/interrupt.h>
8 #include <linux/list.h>
9 #include <linux/timer.h>
10 #include <linux/init.h>
11 #include <linux/serial_core.h>
12 #include <linux/serial_s3c.h>
13 #include <linux/platform_device.h>
15 #include <linux/i2c.h>
17 #include <linux/gpio.h>
18 #include <linux/delay.h>
20 #include <video/platform_lcd.h>
21 #include <video/samsung_fimd.h>
23 #include <asm/mach/arch.h>
24 #include <asm/mach/map.h>
25 #include <asm/mach/irq.h>
27 #include <mach/irqs.h>
28 #include <mach/hardware.h>
32 #include <asm/mach-types.h>
34 #include <linux/platform_data/i2c-s3c2410.h>
37 #include <plat/devs.h>
39 #include <plat/samsung-time.h>
43 #define UCON S3C2410_UCON_DEFAULT
44 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE
45 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
47 static struct s3c2410_uartcfg ncp_uartcfgs
[] __initdata
= {
48 /* REVISIT: NCP uses only serial 1, 2 */
72 static struct platform_device
*ncp_devices
[] __initdata
= {
77 static struct map_desc ncp_iodesc
[] __initdata
= {};
79 static void __init
ncp_map_io(void)
81 s3c64xx_init_io(ncp_iodesc
, ARRAY_SIZE(ncp_iodesc
));
82 s3c64xx_set_xtal_freq(12000000);
83 s3c24xx_init_uarts(ncp_uartcfgs
, ARRAY_SIZE(ncp_uartcfgs
));
84 samsung_set_timer_source(SAMSUNG_PWM3
, SAMSUNG_PWM4
);
87 static void __init
ncp_machine_init(void)
89 s3c_i2c0_set_platdata(NULL
);
91 platform_add_devices(ncp_devices
, ARRAY_SIZE(ncp_devices
));
94 MACHINE_START(NCP
, "NCP")
95 /* Maintainer: Samsung Electronics */
97 .nr_irqs
= S3C64XX_NR_IRQS
,
98 .init_irq
= s3c6410_init_irq
,
100 .init_machine
= ncp_machine_init
,
101 .init_time
= samsung_timer_init
,
102 .restart
= s3c64xx_restart
,