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) 2012 MIPS Technologies, Inc. All rights reserved.
8 #include <linux/module.h>
10 #include <linux/dma-mapping.h>
11 #include <linux/platform_device.h>
13 struct resource ehci_resources[] = {
17 .flags = IORESOURCE_MEM
20 .start = MIPS_CPU_IRQ_BASE + 2,
21 .flags = IORESOURCE_IRQ
25 u64 sead3_usbdev_dma_mask = DMA_BIT_MASK(32);
27 static struct platform_device ehci_device = {
31 .dma_mask = &sead3_usbdev_dma_mask,
32 .coherent_dma_mask = DMA_BIT_MASK(32)
34 .num_resources = ARRAY_SIZE(ehci_resources),
35 .resource = ehci_resources
38 static int __init ehci_init(void)
40 return platform_device_register(&ehci_device);
43 module_init(ehci_init);
45 MODULE_AUTHOR("Chris Dearman <chris@mips.com>");
46 MODULE_LICENSE("GPL");
47 MODULE_DESCRIPTION("EHCI probe driver for SEAD3");