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>
31 #include <asm/mach-types.h>
33 #include <linux/platform_data/i2c-s3c2410.h>
41 #define UCON S3C2410_UCON_DEFAULT
42 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE
43 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
45 static struct s3c2410_uartcfg ncp_uartcfgs
[] __initdata
= {
46 /* REVISIT: NCP uses only serial 1, 2 */
70 static struct platform_device
*ncp_devices
[] __initdata
= {
75 static struct map_desc ncp_iodesc
[] __initdata
= {};
77 static void __init
ncp_map_io(void)
79 s3c64xx_init_io(ncp_iodesc
, ARRAY_SIZE(ncp_iodesc
));
80 s3c64xx_set_xtal_freq(12000000);
81 s3c24xx_init_uarts(ncp_uartcfgs
, ARRAY_SIZE(ncp_uartcfgs
));
82 s3c64xx_set_timer_source(S3C64XX_PWM3
, S3C64XX_PWM4
);
85 static void __init
ncp_machine_init(void)
87 s3c_i2c0_set_platdata(NULL
);
89 platform_add_devices(ncp_devices
, ARRAY_SIZE(ncp_devices
));
92 MACHINE_START(NCP
, "NCP")
93 /* Maintainer: Samsung Electronics */
95 .nr_irqs
= S3C64XX_NR_IRQS
,
96 .init_irq
= s3c6410_init_irq
,
98 .init_machine
= ncp_machine_init
,
99 .init_time
= s3c64xx_timer_init
,