2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2009 MIPS Technologies, vInc.
7 * written by Chris Dearman (chris@mips.com)
9 * Probe driver for the SEAD3 EHCI device
12 #include <linux/module.h>
13 #include <linux/init.h>
14 #include <linux/platform_device.h>
15 #include <linux/dma-mapping.h>
18 struct resource ehci_resources
[] = {
22 .flags
= IORESOURCE_MEM
25 .start
= MIPS_CPU_IRQ_BASE
+ 2,
26 .flags
= IORESOURCE_IRQ
30 u64 sead3_usbdev_dma_mask
= DMA_BIT_MASK(32);
32 static struct platform_device ehci_device
= {
33 .name
= "ci13xxx-ehci",
36 .dma_mask
= &sead3_usbdev_dma_mask
,
37 .coherent_dma_mask
= DMA_BIT_MASK(32)
39 .num_resources
= ARRAY_SIZE(ehci_resources
),
40 .resource
= ehci_resources
43 static int __init
ehci_init(void)
45 return platform_device_register(&ehci_device
);
48 module_init(ehci_init
);
50 MODULE_AUTHOR("Chris Dearman <chris@mips.com>");
51 MODULE_LICENSE("GPL");
52 MODULE_DESCRIPTION("EHCI probe driver for SEAD3");