5 * 11-14-2005 Victor Yu. Create it.
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>
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>
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
,
33 .flags
= IORESOURCE_IRQ
,
36 static struct platform_device mcpu_usb_host_device
= {
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