arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / arm / mach-s3c64xx / mach-ncp.c
blob13fea5c86ca3acc60d20af2a9e05f532fe8275a7
1 // SPDX-License-Identifier: GPL-2.0
2 //
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>
14 #include <linux/io.h>
15 #include <linux/i2c.h>
16 #include <linux/fb.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>
29 #include <mach/map.h>
31 #include <asm/irq.h>
32 #include <asm/mach-types.h>
34 #include <linux/platform_data/i2c-s3c2410.h>
35 #include <plat/fb.h>
37 #include <plat/devs.h>
38 #include <plat/cpu.h>
39 #include <plat/samsung-time.h>
41 #include "common.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 */
49 [0] = {
50 .hwport = 0,
51 .flags = 0,
52 .ucon = UCON,
53 .ulcon = ULCON,
54 .ufcon = UFCON,
56 [1] = {
57 .hwport = 1,
58 .flags = 0,
59 .ucon = UCON,
60 .ulcon = ULCON,
61 .ufcon = UFCON,
63 [2] = {
64 .hwport = 2,
65 .flags = 0,
66 .ucon = UCON,
67 .ulcon = ULCON,
68 .ufcon = UFCON,
72 static struct platform_device *ncp_devices[] __initdata = {
73 &s3c_device_hsmmc1,
74 &s3c_device_i2c0,
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 */
96 .atag_offset = 0x100,
97 .nr_irqs = S3C64XX_NR_IRQS,
98 .init_irq = s3c6410_init_irq,
99 .map_io = ncp_map_io,
100 .init_machine = ncp_machine_init,
101 .init_time = samsung_timer_init,
102 .restart = s3c64xx_restart,
103 MACHINE_END