1 /* linux/arch/arm/mach-s3c2410/mach-ipaq.c
3 * Copyright (c) 2003 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
21 #include <linux/kernel.h>
22 #include <linux/types.h>
23 #include <linux/interrupt.h>
24 #include <linux/list.h>
25 #include <linux/timer.h>
26 #include <linux/init.h>
28 #include <asm/mach/arch.h>
29 #include <asm/mach/map.h>
30 #include <asm/mach/irq.h>
32 #include <asm/hardware.h>
33 #include <asm/hardware/iomd.h>
36 #include <asm/mach-types.h>
38 //#include <asm/debug-ll.h>
39 #include <asm/arch/regs-serial.h>
43 static struct map_desc ipaq_iodesc[] __initdata = {
44 /* nothing here yet */
47 #define UCON S3C2410_UCON_DEFAULT | S3C2410_UCON_UCLK
48 #define ULCON S3C2410_LCON_CS8 | S3C2410_LCON_PNONE | S3C2410_LCON_STOPB
49 #define UFCON S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE
51 static struct s3c2410_uartcfg ipaq_uartcfgs[] = {
55 .clock = &s3c2410_pclk,
63 .clock = &s3c2410_pclk,
72 .clock = &s3c2410_pclk,
80 void __init ipaq_map_io(void)
82 s3c2410_map_io(ipaq_iodesc, ARRAY_SIZE(ipaq_iodesc));
83 s3c2410_uartcfgs = ipaq_uartcfgs;
86 void __init ipaq_init_irq(void)
88 //llprintk("ipaq_init_irq:\n");
94 void __init ipaq_init_time(void)
99 MACHINE_START(H1940, "IPAQ-H1940")
100 MAINTAINER("Ben Dooks <ben@fluff.org>")
101 BOOT_MEM(S3C2410_SDRAM_PA, S3C2410_PA_UART, S3C2410_VA_UART)
102 BOOT_PARAMS(S3C2410_SDRAM_PA + 0x100)
104 INITIRQ(ipaq_init_irq)
105 INITTIME(ipaq_init_time)