2 * linux/arch/arm/mach-pxa/mp900.c
4 * Support for the NEC MobilePro900/C platform
6 * Based on mach-pxa/gumstix.c
8 * 2007, 2008 Kristoffer Ericson <kristoffer.ericson@gmail.com>
9 * 2007, 2008 Michael Petchkovsky <mkpetch@internode.on.net>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
16 #include <linux/init.h>
17 #include <linux/device.h>
18 #include <linux/platform_device.h>
19 #include <linux/types.h>
20 #include <linux/usb/isp116x.h>
22 #include <mach/hardware.h>
23 #include <mach/pxa-regs.h>
24 #include <asm/mach-types.h>
25 #include <asm/mach/arch.h>
28 static void isp116x_pfm_delay(struct device *dev, int delay)
31 /* 400Mhz PXA2 = 2.5ns / instruction */
35 /* 4 Instructions = 4 x 2.5ns = 10ns */
36 __asm__ volatile ("0:\n"
44 static struct isp116x_platform_data isp116x_pfm_data = {
45 .remote_wakeup_enable = 1,
46 .delay = isp116x_pfm_delay,
49 static struct resource isp116x_pfm_resources[] = {
52 .end = 0x0d000000 + 1,
53 .flags = IORESOURCE_MEM,
56 .start = 0x0d000000 + 4,
57 .end = 0x0d000000 + 5,
58 .flags = IORESOURCE_MEM,
63 .flags = IORESOURCE_IRQ,
67 static struct platform_device mp900c_dummy_device = {
68 .name = "mp900c_dummy",
72 static struct platform_device mp900c_usb = {
73 .name = "isp116x-hcd",
74 .num_resources = ARRAY_SIZE(isp116x_pfm_resources),
75 .resource = isp116x_pfm_resources,
76 .dev.platform_data = &isp116x_pfm_data,
79 static struct platform_device *devices[] __initdata = {
84 static void __init mp900c_init(void)
86 printk(KERN_INFO "MobilePro 900/C machine init\n");
87 platform_add_devices(devices, ARRAY_SIZE(devices));
90 /* Maintainer - Michael Petchkovsky <mkpetch@internode.on.net> */
91 MACHINE_START(NEC_MP900, "MobilePro900/C")
92 .phys_io = 0x40000000,
93 .boot_params = 0xa0220100,
94 .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc,
97 .init_irq = pxa25x_init_irq,
98 .init_machine = mp900c_init,