dev-audio.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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);
  44. static struct resource s3c64xx_iisv4_resource[] = {
  45. [0] = {
  46. .start = S3C64XX_PA_IISV4,
  47. .end = S3C64XX_PA_IISV4 + 0x100 - 1,
  48. .flags = IORESOURCE_MEM,
  49. },
  50. };
  51. struct platform_device s3c64xx_device_iisv4 = {
  52. .name = "s3c64xx-iis-v4",
  53. .id = -1,
  54. .num_resources = ARRAY_SIZE(s3c64xx_iisv4_resource),
  55. .resource = s3c64xx_iisv4_resource,
  56. };
  57. EXPORT_SYMBOL(s3c64xx_device_iisv4);