sead3-ehci.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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) 2012 MIPS Technologies, Inc. All rights reserved.
  7. */
  8. #include <linux/module.h>
  9. #include <linux/irq.h>
  10. #include <linux/dma-mapping.h>
  11. #include <linux/platform_device.h>
  12. struct resource ehci_resources[] = {
  13. {
  14. .start = 0x1b200000,
  15. .end = 0x1b200fff,
  16. .flags = IORESOURCE_MEM
  17. },
  18. {
  19. .start = MIPS_CPU_IRQ_BASE + 2,
  20. .flags = IORESOURCE_IRQ
  21. }
  22. };
  23. u64 sead3_usbdev_dma_mask = DMA_BIT_MASK(32);
  24. static struct platform_device ehci_device = {
  25. .name = "sead3-ehci",
  26. .id = 0,
  27. .dev = {
  28. .dma_mask = &sead3_usbdev_dma_mask,
  29. .coherent_dma_mask = DMA_BIT_MASK(32)
  30. },
  31. .num_resources = ARRAY_SIZE(ehci_resources),
  32. .resource = ehci_resources
  33. };
  34. static int __init ehci_init(void)
  35. {
  36. return platform_device_register(&ehci_device);
  37. }
  38. module_init(ehci_init);
  39. MODULE_AUTHOR("Chris Dearman <chris@mips.com>");
  40. MODULE_LICENSE("GPL");
  41. MODULE_DESCRIPTION("EHCI probe driver for SEAD3");