1 /* linux/arch/arm/mach-s3c2410/mach-rx3715.c
3 * Copyright (c) 2003,2004 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * http://www.handhelds.org/projects/rx3715.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-Sep-2004 BJD Copied from mach-h1940.c
14 * 25-Oct-2004 BJD Updates for 2.6.10-rc1
15 * 10-Jan-2005 BJD Removed include of s3c2410.h s3c2440.h
16 * 14-Jan-2005 BJD Added new clock init
17 * 10-Mar-2005 LCVR Changed S3C2410_VA to S3C24XX_VA
18 * 14-Mar-2005 BJD Fixed __iomem warnings
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>
27 #include <linux/tty.h>
28 #include <linux/console.h>
29 #include <linux/serial_core.h>
30 #include <linux/serial.h>
32 #include <asm/mach/arch.h>
33 #include <asm/mach/map.h>
34 #include <asm/mach/irq.h>
36 #include <asm/hardware.h>
37 #include <asm/hardware/iomd.h>
40 #include <asm/mach-types.h>
42 #include <asm/arch/regs-serial.h>
43 #include <asm/arch/regs-gpio.h>
50 static struct map_desc rx3715_iodesc[] __initdata = {
51 /* dump ISA space somewhere unused */
53 { (u32)S3C24XX_VA_ISA_WORD, S3C2410_CS3, SZ_16M, MT_DEVICE },
54 { (u32)S3C24XX_VA_ISA_BYTE, S3C2410_CS3, SZ_16M, MT_DEVICE },
58 static struct s3c24xx_uart_clksrc rx3715_serial_clocks[] = {
67 static struct s3c2410_uartcfg rx3715_uartcfgs[] = {
74 .clocks = rx3715_serial_clocks,
75 .clocks_size = ARRAY_SIZE(rx3715_serial_clocks),
83 .clocks = rx3715_serial_clocks,
84 .clocks_size = ARRAY_SIZE(rx3715_serial_clocks),
89 .uart_flags = UPF_CONS_FLOW,
93 .clocks = rx3715_serial_clocks,
94 .clocks_size = ARRAY_SIZE(rx3715_serial_clocks),
98 static struct platform_device *rx3715_devices[] __initdata = {
106 static struct s3c24xx_board rx3715_board __initdata = {
107 .devices = rx3715_devices,
108 .devices_count = ARRAY_SIZE(rx3715_devices)
111 void __init rx3715_map_io(void)
113 s3c24xx_init_io(rx3715_iodesc, ARRAY_SIZE(rx3715_iodesc));
114 s3c24xx_init_clocks(16934000);
115 s3c24xx_init_uarts(rx3715_uartcfgs, ARRAY_SIZE(rx3715_uartcfgs));
116 s3c24xx_set_board(&rx3715_board);
119 void __init rx3715_init_irq(void)
125 static void __init rx3715_init_machine(void)
130 #define rx3715_init_machine NULL
133 MACHINE_START(RX3715, "IPAQ-RX3715")
134 /* Maintainer: Ben Dooks <ben@fluff.org> */
135 .phys_ram = S3C2410_SDRAM_PA,
136 .phys_io = S3C2410_PA_UART,
137 .io_pg_offst = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
138 .boot_params = S3C2410_SDRAM_PA + 0x100,
139 .map_io = rx3715_map_io,
140 .init_irq = rx3715_init_irq,
141 .init_machine = rx3715_init_machine,
142 .timer = &s3c24xx_timer,