-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ARM] S3C64XX: Provide device for IIS ports
This allows the S3C64XX IIS drivers to be converted to the standard driver model and allows fixes there for problems with attempting to acquire the clocks for the IIS blocks via the clock API. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
- Loading branch information
Mark Brown
authored and
Ben Dooks
committed
Jun 16, 2009
1 parent
9492b27
commit 52da219
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* linux/arch/arm/plat-s3c/dev-audio.c | ||
* | ||
* Copyright 2009 Wolfson Microelectronics | ||
* Mark Brown <broonie@opensource.wolfsonmicro.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/string.h> | ||
#include <linux/platform_device.h> | ||
|
||
#include <mach/irqs.h> | ||
#include <mach/map.h> | ||
|
||
#include <plat/devs.h> | ||
|
||
|
||
static struct resource s3c64xx_iis0_resource[] = { | ||
[0] = { | ||
.start = S3C64XX_PA_IIS0, | ||
.end = S3C64XX_PA_IIS0 + 0x100 - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
}; | ||
|
||
struct platform_device s3c64xx_device_iis0 = { | ||
.name = "s3c64xx-iis", | ||
.id = 0, | ||
.num_resources = ARRAY_SIZE(s3c64xx_iis0_resource), | ||
.resource = s3c64xx_iis0_resource, | ||
}; | ||
EXPORT_SYMBOL(s3c64xx_device_iis0); | ||
|
||
static struct resource s3c64xx_iis1_resource[] = { | ||
[0] = { | ||
.start = S3C64XX_PA_IIS1, | ||
.end = S3C64XX_PA_IIS1 + 0x100 - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
}; | ||
|
||
struct platform_device s3c64xx_device_iis1 = { | ||
.name = "s3c64xx-iis", | ||
.id = 1, | ||
.num_resources = ARRAY_SIZE(s3c64xx_iis1_resource), | ||
.resource = s3c64xx_iis1_resource, | ||
}; | ||
EXPORT_SYMBOL(s3c64xx_device_iis1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters