dev-audio.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* linux/arch/arm/plat-s3c/dev-audio.c
  2. *
  3. * Copyright 2009 Wolfson Microelectronics
  4. * Mark Brown <broonie@opensource.wolfsonmicro.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/string.h>
  12. #include <linux/platform_device.h>
  13. #include <mach/irqs.h>
  14. #include <mach/map.h>
  15. #include <plat/devs.h>
  16. static struct resource s3c64xx_iis0_resource[] = {
  17. [0] = {
  18. .start = S3C64XX_PA_IIS0,
  19. .end = S3C64XX_PA_IIS0 + 0x100 - 1,
  20. .flags = IORESOURCE_MEM,
  21. },
  22. };
  23. struct platform_device s3c64xx_device_iis0 = {
  24. .name = "s3c64xx-iis",
  25. .id = 0,
  26. .num_resources = ARRAY_SIZE(s3c64xx_iis0_resource),
  27. .resource = s3c64xx_iis0_resource,
  28. };
  29. EXPORT_SYMBOL(s3c64xx_device_iis0);
  30. static struct resource s3c64xx_iis1_resource[] = {
  31. [0] = {
  32. .start = S3C64XX_PA_IIS1,
  33. .end = S3C64XX_PA_IIS1 + 0x100 - 1,
  34. .flags = IORESOURCE_MEM,
  35. },
  36. };
  37. struct platform_device s3c64xx_device_iis1 = {
  38. .name = "s3c64xx-iis",
  39. .id = 1,
  40. .num_resources = ARRAY_SIZE(s3c64xx_iis1_resource),
  41. .resource = s3c64xx_iis1_resource,
  42. };
  43. EXPORT_SYMBOL(s3c64xx_device_iis1);