GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / mips / mti-sead3 / sead3-ehci.c
blob07aaa5d3c037eb8d426d3cc6cfb4219f25c93f1d
1 /*
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
4 * for more details.
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>
16 #include <irq.h>
18 struct resource ehci_resources[] = {
20 .start = 0x1b200000,
21 .end = 0x1b200fff,
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",
34 .id = 0,
35 .dev = {
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");