Mark Brown | 52da219 | 2009-06-03 20:08:38 +0100 | [diff] [blame] | 1 | /* linux/arch/arm/plat-s3c/dev-audio.c |
| 2 | * |
| 3 | * Copyright 2009 Wolfson Microelectronics |
| 4 | * Mark Brown <broonie@opensource.wolfsonmicro.com> |
| 5 | * |
| 6 | |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/kernel.h> |
| 13 | #include <linux/string.h> |
| 14 | #include <linux/platform_device.h> |
| 15 | |
| 16 | #include <mach/irqs.h> |
| 17 | #include <mach/map.h> |
| 18 | |
| 19 | #include <plat/devs.h> |
| 20 | |
| 21 | |
| 22 | static struct resource s3c64xx_iis0_resource[] = { |
| 23 | [0] = { |
| 24 | .start = S3C64XX_PA_IIS0, |
| 25 | .end = S3C64XX_PA_IIS0 + 0x100 - 1, |
| 26 | .flags = IORESOURCE_MEM, |
| 27 | }, |
| 28 | }; |
| 29 | |
| 30 | struct platform_device s3c64xx_device_iis0 = { |
| 31 | .name = "s3c64xx-iis", |
| 32 | .id = 0, |
| 33 | .num_resources = ARRAY_SIZE(s3c64xx_iis0_resource), |
| 34 | .resource = s3c64xx_iis0_resource, |
| 35 | }; |
| 36 | EXPORT_SYMBOL(s3c64xx_device_iis0); |
| 37 | |
| 38 | static struct resource s3c64xx_iis1_resource[] = { |
| 39 | [0] = { |
| 40 | .start = S3C64XX_PA_IIS1, |
| 41 | .end = S3C64XX_PA_IIS1 + 0x100 - 1, |
| 42 | .flags = IORESOURCE_MEM, |
| 43 | }, |
| 44 | }; |
| 45 | |
| 46 | struct platform_device s3c64xx_device_iis1 = { |
| 47 | .name = "s3c64xx-iis", |
| 48 | .id = 1, |
| 49 | .num_resources = ARRAY_SIZE(s3c64xx_iis1_resource), |
| 50 | .resource = s3c64xx_iis1_resource, |
| 51 | }; |
| 52 | EXPORT_SYMBOL(s3c64xx_device_iis1); |
Mark Brown | d06a49e | 2009-06-03 20:08:39 +0100 | [diff] [blame] | 53 | |
| 54 | static struct resource s3c64xx_iisv4_resource[] = { |
| 55 | [0] = { |
| 56 | .start = S3C64XX_PA_IISV4, |
| 57 | .end = S3C64XX_PA_IISV4 + 0x100 - 1, |
| 58 | .flags = IORESOURCE_MEM, |
| 59 | }, |
| 60 | }; |
| 61 | |
| 62 | struct platform_device s3c64xx_device_iisv4 = { |
| 63 | .name = "s3c64xx-iis-v4", |
| 64 | .id = -1, |
| 65 | .num_resources = ARRAY_SIZE(s3c64xx_iisv4_resource), |
| 66 | .resource = s3c64xx_iisv4_resource, |
| 67 | }; |
| 68 | EXPORT_SYMBOL(s3c64xx_device_iisv4); |