1 /* linux/arch/arm/mach-s3c2410/mach-otom.c
3 * Copyright (c) 2004 Nex Vision
4 * Guillaume GOURAT <guillaume.gourat@nexvision.fr>
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.
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/platform_device.h>
20 #include <asm/mach/arch.h>
21 #include <asm/mach/map.h>
22 #include <asm/mach/irq.h>
24 #include <asm/arch/otom-map.h>
26 #include <asm/hardware.h>
29 #include <asm/mach-types.h>
31 #include <asm/arch/regs-serial.h>
32 #include <asm/arch/regs-gpio.h>
39 static struct map_desc otom11_iodesc[] __initdata = {
41 { (u32)OTOM_VA_CS8900A_BASE, OTOM_PA_CS8900A_BASE, SZ_16M, MT_DEVICE },
44 #define UCON S3C2410_UCON_DEFAULT
45 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
46 #define UFCON S3C2410_UFCON_RXTRIG12 | S3C2410_UFCON_FIFOMODE
48 static struct s3c2410_uartcfg otom11_uartcfgs[] __initdata = {
63 /* port 2 is not actually used */
73 /* NOR Flash on NexVision OTOM board */
75 static struct resource otom_nor_resource[] = {
78 .end = S3C2410_CS0 + (4*1024*1024) - 1,
79 .flags = IORESOURCE_MEM,
83 static struct platform_device otom_device_nor = {
86 .num_resources = ARRAY_SIZE(otom_nor_resource),
87 .resource = otom_nor_resource,
90 /* Standard OTOM devices */
92 static struct platform_device *otom11_devices[] __initdata = {
102 static struct s3c24xx_board otom11_board __initdata = {
103 .devices = otom11_devices,
104 .devices_count = ARRAY_SIZE(otom11_devices)
108 static void __init otom11_map_io(void)
110 s3c24xx_init_io(otom11_iodesc, ARRAY_SIZE(otom11_iodesc));
111 s3c24xx_init_clocks(0);
112 s3c24xx_init_uarts(otom11_uartcfgs, ARRAY_SIZE(otom11_uartcfgs));
113 s3c24xx_set_board(&otom11_board);
117 MACHINE_START(OTOM, "Nex Vision - Otom 1.1")
118 /* Maintainer: Guillaume GOURAT <guillaume.gourat@nexvision.tv> */
119 .phys_io = S3C2410_PA_UART,
120 .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
121 .boot_params = S3C2410_SDRAM_PA + 0x100,
122 .map_io = otom11_map_io,
123 .init_irq = s3c24xx_init_irq,
124 .timer = &s3c24xx_timer,