1 /* linux/arch/arm/plat-s3c/dev-audio.c
3 * Copyright 2009 Wolfson Microelectronics
4 * Mark Brown <broonie@opensource.wolfsonmicro.com>
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.
12 #include <linux/kernel.h>
13 #include <linux/string.h>
14 #include <linux/platform_device.h>
16 #include <mach/irqs.h>
19 #include <plat/devs.h>
22 static struct resource s3c64xx_iis0_resource
[] = {
24 .start
= S3C64XX_PA_IIS0
,
25 .end
= S3C64XX_PA_IIS0
+ 0x100 - 1,
26 .flags
= IORESOURCE_MEM
,
30 struct platform_device s3c64xx_device_iis0
= {
31 .name
= "s3c64xx-iis",
33 .num_resources
= ARRAY_SIZE(s3c64xx_iis0_resource
),
34 .resource
= s3c64xx_iis0_resource
,
36 EXPORT_SYMBOL(s3c64xx_device_iis0
);
38 static struct resource s3c64xx_iis1_resource
[] = {
40 .start
= S3C64XX_PA_IIS1
,
41 .end
= S3C64XX_PA_IIS1
+ 0x100 - 1,
42 .flags
= IORESOURCE_MEM
,
46 struct platform_device s3c64xx_device_iis1
= {
47 .name
= "s3c64xx-iis",
49 .num_resources
= ARRAY_SIZE(s3c64xx_iis1_resource
),
50 .resource
= s3c64xx_iis1_resource
,
52 EXPORT_SYMBOL(s3c64xx_device_iis1
);
54 static struct resource s3c64xx_iisv4_resource
[] = {
56 .start
= S3C64XX_PA_IISV4
,
57 .end
= S3C64XX_PA_IISV4
+ 0x100 - 1,
58 .flags
= IORESOURCE_MEM
,
62 struct platform_device s3c64xx_device_iisv4
= {
63 .name
= "s3c64xx-iis-v4",
65 .num_resources
= ARRAY_SIZE(s3c64xx_iisv4_resource
),
66 .resource
= s3c64xx_iisv4_resource
,
68 EXPORT_SYMBOL(s3c64xx_device_iisv4
);