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. 5 * 6 * Copyright (C) 2009 MIPS Technologies, vInc. 7 * written by Chris Dearman (chris@mips.com) 8 * 9 * Probe driver for the SEAD3 EHCI device 10 * 11 */ 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> 17 18struct resource ehci_resources[] = { 19 { 20 .start = 0x1b200000, 21 .end = 0x1b200fff, 22 .flags = IORESOURCE_MEM 23 }, 24 { 25 .start = MIPS_CPU_IRQ_BASE + 2, 26 .flags = IORESOURCE_IRQ 27 } 28}; 29 30u64 sead3_usbdev_dma_mask = DMA_BIT_MASK(32); 31 32static 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) 38 }, 39 .num_resources = ARRAY_SIZE(ehci_resources), 40 .resource = ehci_resources 41}; 42 43static int __init ehci_init(void) 44{ 45 return platform_device_register(&ehci_device); 46} 47 48module_init(ehci_init); 49 50MODULE_AUTHOR("Chris Dearman <chris@mips.com>"); 51MODULE_LICENSE("GPL"); 52MODULE_DESCRIPTION("EHCI probe driver for SEAD3"); 53