]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - arch/arm/mach-s3c2410/mach-otom.c
[ARM] 4324/1: S3C24XX: remove clocks from s3c24xx_board
[mirror_ubuntu-jammy-kernel.git] / arch / arm / mach-s3c2410 / mach-otom.c
CommitLineData
1da177e4
LT
1/* linux/arch/arm/mach-s3c2410/mach-otom.c
2 *
3 * Copyright (c) 2004 Nex Vision
4 * Guillaume GOURAT <guillaume.gourat@nexvision.fr>
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>
b6d1f542 18#include <linux/serial_core.h>
d052d1be 19#include <linux/platform_device.h>
1da177e4
LT
20
21#include <asm/mach/arch.h>
22#include <asm/mach/map.h>
23#include <asm/mach/irq.h>
24
25#include <asm/arch/otom-map.h>
26
27#include <asm/hardware.h>
28#include <asm/io.h>
29#include <asm/irq.h>
30#include <asm/mach-types.h>
31
32#include <asm/arch/regs-serial.h>
33#include <asm/arch/regs-gpio.h>
34
a21765a7
BD
35#include <asm/plat-s3c24xx/s3c2410.h>
36#include <asm/plat-s3c24xx/clock.h>
37#include <asm/plat-s3c24xx/devs.h>
38#include <asm/plat-s3c24xx/cpu.h>
1da177e4
LT
39
40static struct map_desc otom11_iodesc[] __initdata = {
41 /* Device area */
42 { (u32)OTOM_VA_CS8900A_BASE, OTOM_PA_CS8900A_BASE, SZ_16M, MT_DEVICE },
43};
44
45#define UCON S3C2410_UCON_DEFAULT
46#define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
47#define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE
48
66a9b49a 49static struct s3c2410_uartcfg otom11_uartcfgs[] __initdata = {
1da177e4
LT
50 [0] = {
51 .hwport = 0,
52 .flags = 0,
53 .ucon = UCON,
54 .ulcon = ULCON,
55 .ufcon = UFCON,
56 },
57 [1] = {
58 .hwport = 1,
59 .flags = 0,
60 .ucon = UCON,
61 .ulcon = ULCON,
62 .ufcon = UFCON,
63 },
64 /* port 2 is not actually used */
65 [2] = {
66 .hwport = 2,
67 .flags = 0,
68 .ucon = UCON,
69 .ulcon = ULCON,
70 .ufcon = UFCON,
71 }
72};
73
74/* NOR Flash on NexVision OTOM board */
75
76static struct resource otom_nor_resource[] = {
77 [0] = {
78 .start = S3C2410_CS0,
79 .end = S3C2410_CS0 + (4*1024*1024) - 1,
80 .flags = IORESOURCE_MEM,
81 }
82};
83
84static struct platform_device otom_device_nor = {
85 .name = "mtd-flash",
86 .id = -1,
87 .num_resources = ARRAY_SIZE(otom_nor_resource),
88 .resource = otom_nor_resource,
89};
90
91/* Standard OTOM devices */
92
93static struct platform_device *otom11_devices[] __initdata = {
94 &s3c_device_usb,
95 &s3c_device_lcd,
96 &s3c_device_wdt,
97 &s3c_device_i2c,
98 &s3c_device_iis,
99 &s3c_device_rtc,
100 &otom_device_nor,
101};
102
103static struct s3c24xx_board otom11_board __initdata = {
104 .devices = otom11_devices,
105 .devices_count = ARRAY_SIZE(otom11_devices)
106};
107
108
5fe10ab1 109static void __init otom11_map_io(void)
1da177e4
LT
110{
111 s3c24xx_init_io(otom11_iodesc, ARRAY_SIZE(otom11_iodesc));
112 s3c24xx_init_clocks(0);
113 s3c24xx_init_uarts(otom11_uartcfgs, ARRAY_SIZE(otom11_uartcfgs));
114 s3c24xx_set_board(&otom11_board);
115}
116
117
118MACHINE_START(OTOM, "Nex Vision - Otom 1.1")
e9dea0c6 119 /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */
e9dea0c6
RK
120 .phys_io = S3C2410_PA_UART,
121 .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
122 .boot_params = S3C2410_SDRAM_PA + 0x100,
1da177e4
LT
123 .map_io = otom11_map_io,
124 .init_irq = s3c24xx_init_irq,
125 .timer = &s3c24xx_timer,
126MACHINE_END