dev-usb-hsotg.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* linux/arch/arm/plat-s3c/dev-usb-hsotg.c
  2. *
  3. * Copyright 2008 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. * http://armlinux.simtec.co.uk/
  6. *
  7. * S3C series device definition for USB high-speed UDC/OtG block
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #include <linux/kernel.h>
  14. #include <linux/string.h>
  15. #include <linux/platform_device.h>
  16. #include <linux/dma-mapping.h>
  17. #include <mach/irqs.h>
  18. #include <mach/map.h>
  19. #include <plat/devs.h>
  20. static struct resource s3c_usb_hsotg_resources[] = {
  21. [0] = {
  22. .start = S3C_PA_USB_HSOTG,
  23. .end = S3C_PA_USB_HSOTG + 0x10000 - 1,
  24. .flags = IORESOURCE_MEM,
  25. },
  26. [1] = {
  27. .start = IRQ_OTG,
  28. .end = IRQ_OTG,
  29. .flags = IORESOURCE_IRQ,
  30. },
  31. };
  32. static u64 s3c_hsotg_dmamask = DMA_BIT_MASK(32);
  33. struct platform_device s3c_device_usb_hsotg = {
  34. .name = "s3c-hsotg",
  35. .id = -1,
  36. .num_resources = ARRAY_SIZE(s3c_usb_hsotg_resources),
  37. .resource = s3c_usb_hsotg_resources,
  38. .dev = {
  39. .dma_mask = &s3c_hsotg_dmamask,
  40. .coherent_dma_mask = DMA_BIT_MASK(32),
  41. },
  42. };