2 * linux/arch/arm/mach-w90x900/w90p910.c
4 * Based on linux/arch/arm/plat-s3c24xx/s3c244x.c by Ben Dooks
6 * Copyright (c) 2008 Nuvoton technology corporation
9 * Wan ZongShun <mcuos.com@gmail.com>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
20 #include <linux/kernel.h>
21 #include <linux/types.h>
22 #include <linux/interrupt.h>
23 #include <linux/list.h>
24 #include <linux/timer.h>
25 #include <linux/init.h>
26 #include <linux/platform_device.h>
28 #include <linux/serial_8250.h>
30 #include <asm/mach/arch.h>
31 #include <asm/mach/map.h>
32 #include <asm/mach/irq.h>
35 #include <mach/hardware.h>
36 #include <mach/regs-serial.h>
40 /* Initial IO mappings */
42 static struct map_desc w90p910_iodesc[] __initdata = {
51 /* Initial serial platform data */
53 struct plat_serial8250_port w90p910_uart_data[] = {
54 W90X900_8250PORT(UART0),
57 struct platform_device w90p910_serial_device = {
59 .id = PLAT8250_DEV_PLATFORM,
61 .platform_data = w90p910_uart_data,
65 /*Init W90P910 evb io*/
67 void __init w90p910_map_io(struct map_desc *mach_desc, int mach_size)
69 unsigned long idcode = 0x0;
71 iotable_init(w90p910_iodesc, ARRAY_SIZE(w90p910_iodesc));
73 idcode = __raw_readl(W90X900PDID);
74 if (idcode != W90P910_CPUID)
75 printk(KERN_ERR "CPU type 0x%08lx is not W90P910\n", idcode);
78 /*Init W90P910 clock*/
80 void __init w90p910_init_clocks(int xtal)
84 static int __init w90p910_init_cpu(void)
89 static int __init w90x900_arch_init(void)
91 return w90p910_init_cpu();
93 arch_initcall(w90x900_arch_init);