2 * linux/arch/arm/mach-w90x900/mach-w90p910evb.c
4 * Based on mach-s3c2410/mach-smdk2410.c by Jonas Dietsche
6 * Copyright (C) 2008 Nuvoton technology corporation
9 * Wan ZongShun <mcuos.com@gmail.com>
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
18 #include <linux/kernel.h>
19 #include <linux/types.h>
20 #include <linux/interrupt.h>
21 #include <linux/list.h>
22 #include <linux/timer.h>
23 #include <linux/init.h>
24 #include <linux/platform_device.h>
26 #include <asm/mach/arch.h>
27 #include <asm/mach/map.h>
28 #include <asm/mach/irq.h>
29 #include <asm/mach-types.h>
31 #include <mach/regs-serial.h>
36 static struct map_desc w90p910_iodesc[] __initdata = {
39 static struct w90x900_uartcfg w90p910_uartcfgs[] = {
40 W90X900_UARTCFG(0, 0, 0, 0, 0),
41 W90X900_UARTCFG(1, 0, 0, 0, 0),
42 W90X900_UARTCFG(2, 0, 0, 0, 0),
43 W90X900_UARTCFG(3, 0, 0, 0, 0),
44 W90X900_UARTCFG(4, 0, 0, 0, 0),
47 /*Here should be your evb resourse,such as LCD*/
49 static struct platform_device *w90p910evb_dev[] __initdata = {
52 static void __init w90p910evb_map_io(void)
54 w90p910_map_io(w90p910_iodesc, ARRAY_SIZE(w90p910_iodesc));
55 w90p910_init_clocks(0);
56 w90p910_init_uarts(w90p910_uartcfgs, ARRAY_SIZE(w90p910_uartcfgs));
59 static void __init w90p910evb_init(void)
61 platform_add_devices(w90p910evb_dev, ARRAY_SIZE(w90p910evb_dev));
64 MACHINE_START(W90P910EVB, "W90P910EVB")
65 /* Maintainer: Wan ZongShun */
66 .phys_io = W90X900_PA_UART,
67 .io_pg_offst = (((u32)W90X900_VA_UART) >> 18) & 0xfffc,
69 .map_io = w90p910evb_map_io,
70 .init_irq = w90x900_init_irq,
71 .init_machine = w90p910evb_init,
72 .timer = &w90x900_timer,