MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / arch / arm / mach-moxacpu / device.c
blob9df221f054e407d657e1c1ecbcfafb13f3ac010a
2 /*
3 * History:
4 * Date Author Comment
5 * 11-14-2005 Victor Yu. Create it.
6 */
7 #include <linux/config.h>
8 #include <linux/module.h>
9 #include <linux/kernel.h>
10 #include <linux/init.h>
11 #include <linux/delay.h>
12 #include <linux/pm.h>
13 #include <linux/cpufreq.h>
14 #include <linux/ioport.h>
16 #include <asm/div64.h>
17 #include <asm/hardware.h>
18 #include <asm/system.h>
19 #include <asm/pgtable.h>
20 #include <asm/mach/map.h>
21 #include <asm/irq.h>
23 #ifdef CONFIG_ARCH_MOXACPU
24 static u64 mcpu_usb_host_dma_mask=0xffffffffUL;
25 static struct resource mcpu_usb_host_resources[] = {
27 .start = IO_ADDRESS(CPE_USBHOST_BASE),
28 .end = IO_ADDRESS(CPE_USBHOST_BASE+4096),
29 .flags = IORESOURCE_MEM,
32 .start = IRQ_USBHOST,
33 .flags = IORESOURCE_IRQ,
36 static struct platform_device mcpu_usb_host_device = {
37 .name = "ehci",
38 .id = -1,
39 .dev = {
40 .dma_mask = &mcpu_usb_host_dma_mask,
41 .coherent_dma_mask = 0xffffffff,
43 .num_resources = ARRAY_SIZE(mcpu_usb_host_resources),
44 .resource = mcpu_usb_host_resources,
47 static struct platform_device *ia240_devices[] __initdata = {
48 &mcpu_usb_host_device,
51 static int __init ia240_init(void)
53 return platform_add_devices(ia240_devices, ARRAY_SIZE(ia240_devices));
56 arch_initcall(ia240_init);
57 #endif // CONFIG_ARCH_MOXACPU