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.
8 * Wan ZongShun <mcuos.com@gmail.com>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation;version 2 of the License.
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 <linux/serial_8250.h>
28 #include <asm/mach/arch.h>
29 #include <asm/mach/map.h>
30 #include <asm/mach/irq.h>
33 #include <mach/hardware.h>
34 #include <mach/regs-serial.h>
38 /* Initial IO mappings */
40 static struct map_desc w90p910_iodesc[] __initdata = {
46 IODESC_ENT(USBEHCIHOST),
47 IODESC_ENT(USBOHCIHOST),
52 /* Initial serial platform data */
54 struct plat_serial8250_port w90p910_uart_data[] = {
55 W90X900_8250PORT(UART0),
58 struct platform_device w90p910_serial_device = {
60 .id = PLAT8250_DEV_PLATFORM,
62 .platform_data = w90p910_uart_data,
66 /*Init W90P910 evb io*/
68 void __init w90p910_map_io(struct map_desc *mach_desc, int mach_size)
70 unsigned long idcode = 0x0;
72 iotable_init(w90p910_iodesc, ARRAY_SIZE(w90p910_iodesc));
74 idcode = __raw_readl(W90X900PDID);
75 if (idcode != W90P910_CPUID)
76 printk(KERN_ERR "CPU type 0x%08lx is not W90P910\n", idcode);
79 /*Init W90P910 clock*/
81 void __init w90p910_init_clocks(int xtal)
85 static int __init w90p910_init_cpu(void)
90 static int __init w90x900_arch_init(void)
92 return w90p910_init_cpu();
94 arch_initcall(w90x900_arch_init);