1 /* linux/arch/arm/mach-s3c2410/mach-h1940.c
3 * Copyright (c) 2003,2004 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * http://www.handhelds.org/projects/h1940.html
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 * 16-May-2003 BJD Created initial version
14 * 16-Aug-2003 BJD Fixed header files and copyright, added URL
15 * 05-Sep-2003 BJD Moved to v2.6 kernel
16 * 06-Jan-2003 BJD Updates for <arch/map.h>
17 * 18-Jan-2003 BJD Added serial port configuration
18 * 17-Feb-2003 BJD Copied to mach-ipaq.c
19 * 21-Aug-2004 BJD Added struct s3c2410_board
20 * 04-Sep-2004 BJD Changed uart init, renamed ipaq_ -> h1940_
23 #include <linux/kernel.h>
24 #include <linux/types.h>
25 #include <linux/interrupt.h>
26 #include <linux/list.h>
27 #include <linux/timer.h>
28 #include <linux/init.h>
30 #include <asm/mach/arch.h>
31 #include <asm/mach/map.h>
32 #include <asm/mach/irq.h>
34 #include <asm/hardware.h>
35 #include <asm/hardware/iomd.h>
38 #include <asm/mach-types.h>
40 //#include <asm/debug-ll.h>
41 #include <asm/arch/regs-serial.h>
47 static struct map_desc h1940_iodesc[] __initdata = {
48 /* nothing here yet */
51 #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
52 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
53 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
55 static struct s3c2410_uartcfg h1940_uartcfgs[] = {
59 .clock = &s3c2410_pclk,
67 .clock = &s3c2410_pclk,
76 .clock = &s3c2410_pclk,
86 static struct platform_device *h1940_devices[] __initdata = {
94 static struct s3c2410_board h1940_board __initdata = {
95 .devices = h1940_devices,
96 .devices_count = ARRAY_SIZE(h1940_devices)
99 void __init h1940_map_io(void)
101 s3c24xx_init_io(h1940_iodesc, ARRAY_SIZE(h1940_iodesc));
102 s3c2410_init_uarts(h1940_uartcfgs, ARRAY_SIZE(h1940_uartcfgs));
103 s3c2410_set_board(&h1940_board);
106 void __init h1940_init_irq(void)
112 void __init h1940_init_time(void)
117 MACHINE_START(H1940, "IPAQ-H1940")
118 MAINTAINER("Ben Dooks <ben@fluff.org>")
119 BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, S3C2410_VA_UART)
120 BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100)
122 INITIRQ(h1940_init_irq)
123 INITTIME(h1940_init_time)