Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[deliverable/linux.git] / arch / arm / mach-s3c64xx / mach-ncp.c
CommitLineData
87c4122f 1/*
431107ea 2 * linux/arch/arm/mach-s3c64xx/mach-ncp.c
87c4122f
KP
3 *
4 * Copyright (C) 2008-2009 Samsung Electronics
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 */
11
12#include <linux/kernel.h>
13#include <linux/types.h>
14#include <linux/interrupt.h>
15#include <linux/list.h>
16#include <linux/timer.h>
17#include <linux/init.h>
18#include <linux/serial_core.h>
19#include <linux/platform_device.h>
20#include <linux/io.h>
21#include <linux/i2c.h>
22#include <linux/fb.h>
23#include <linux/gpio.h>
24#include <linux/delay.h>
25
26#include <video/platform_lcd.h>
5a213a55 27#include <video/samsung_fimd.h>
87c4122f
KP
28
29#include <asm/mach/arch.h>
30#include <asm/mach/map.h>
31#include <asm/mach/irq.h>
32
33#include <mach/hardware.h>
87c4122f
KP
34#include <mach/map.h>
35
36#include <asm/irq.h>
37#include <asm/mach-types.h>
38
39#include <plat/regs-serial.h>
436d42c6 40#include <linux/platform_data/i2c-s3c2410.h>
87c4122f
KP
41#include <plat/fb.h>
42
87c4122f
KP
43#include <plat/clock.h>
44#include <plat/devs.h>
45#include <plat/cpu.h>
46
b024043b
KK
47#include "common.h"
48
87c4122f
KP
49#define UCON S3C2410_UCON_DEFAULT
50#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE
51#define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
52
53static struct s3c2410_uartcfg ncp_uartcfgs[] __initdata = {
54 /* REVISIT: NCP uses only serial 1, 2 */
55 [0] = {
56 .hwport = 0,
57 .flags = 0,
58 .ucon = UCON,
59 .ulcon = ULCON,
60 .ufcon = UFCON,
61 },
62 [1] = {
63 .hwport = 1,
64 .flags = 0,
65 .ucon = UCON,
66 .ulcon = ULCON,
67 .ufcon = UFCON,
68 },
69 [2] = {
70 .hwport = 2,
71 .flags = 0,
72 .ucon = UCON,
73 .ulcon = ULCON,
74 .ufcon = UFCON,
75 },
76};
77
78static struct platform_device *ncp_devices[] __initdata = {
79 &s3c_device_hsmmc1,
80 &s3c_device_i2c0,
81};
82
4d4e2bc2 83static struct map_desc ncp_iodesc[] __initdata = {};
87c4122f
KP
84
85static void __init ncp_map_io(void)
86{
87 s3c64xx_init_io(ncp_iodesc, ARRAY_SIZE(ncp_iodesc));
88 s3c24xx_init_clocks(12000000);
89 s3c24xx_init_uarts(ncp_uartcfgs, ARRAY_SIZE(ncp_uartcfgs));
90}
91
92static void __init ncp_machine_init(void)
93{
94 s3c_i2c0_set_platdata(NULL);
95
96 platform_add_devices(ncp_devices, ARRAY_SIZE(ncp_devices));
97}
98
99MACHINE_START(NCP, "NCP")
100 /* Maintainer: Samsung Electronics */
170a5908 101 .atag_offset = 0x100,
87c4122f
KP
102 .init_irq = s3c6410_init_irq,
103 .map_io = ncp_map_io,
104 .init_machine = ncp_machine_init,
cc8f252b 105 .init_late = s3c64xx_init_late,
6bb27d73 106 .init_time = s3c24xx_timer_init,
ff84ded2 107 .restart = s3c64xx_restart,
87c4122f 108MACHINE_END
This page took 0.245353 seconds and 5 git commands to generate.