aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2006-06-19 13:30:04 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-06-19 13:30:04 -0400
commitbf1c56a3aaa67ac74bc74e631ecc2a2673597cae (patch)
tree2600ec87aca8d4eecac84a3e12dd09a1a3d3cf5d /arch/arm
parent96ce2385dd2817da549910001a69ac0a2762a1b9 (diff)
[ARM] 3591/1: Anubis: IDE device definitions
Patch from Ben Dooks Platform device definitions for the two IDE ports on the Simtec Anubis board. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-s3c2410/mach-anubis.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/mach-anubis.c b/arch/arm/mach-s3c2410/mach-anubis.c
index 52bf718137d4..4a92d6f92d6b 100644
--- a/arch/arm/mach-s3c2410/mach-anubis.c
+++ b/arch/arm/mach-s3c2410/mach-anubis.c
@@ -239,6 +239,54 @@ static struct s3c2410_platform_nand anubis_nand_info = {
239 .select_chip = anubis_nand_select, 239 .select_chip = anubis_nand_select,
240}; 240};
241 241
242/* IDE channels */
243
244static struct resource anubis_ide0_resource[] = {
245 {
246 .start = S3C2410_CS3,
247 .end = S3C2410_CS3 + (8*32) - 1,
248 .flags = IORESOURCE_MEM,
249 }, {
250 .start = S3C2410_CS3 + (1<<26),
251 .end = S3C2410_CS3 + (1<<26) + (8*32) - 1,
252 .flags = IORESOURCE_MEM,
253 }, {
254 .start = IRQ_IDE0,
255 .end = IRQ_IDE0,
256 .flags = IORESOURCE_IRQ,
257 },
258};
259
260static struct platform_device anubis_device_ide0 = {
261 .name = "simtec-ide",
262 .id = 0,
263 .num_resources = ARRAY_SIZE(anubis_ide0_resource),
264 .resource = anubis_ide0_resource,
265};
266
267static struct resource anubis_ide1_resource[] = {
268 {
269 .start = S3C2410_CS4,
270 .end = S3C2410_CS4 + (8*32) - 1,
271 .flags = IORESOURCE_MEM,
272 }, {
273 .start = S3C2410_CS4 + (1<<26),
274 .end = S3C2410_CS4 + (1<<26) + (8*32) - 1,
275 .flags = IORESOURCE_MEM,
276 }, {
277 .start = IRQ_IDE0,
278 .end = IRQ_IDE0,
279 .flags = IORESOURCE_IRQ,
280 },
281};
282
283
284static struct platform_device anubis_device_ide1 = {
285 .name = "simtec-ide",
286 .id = 1,
287 .num_resources = ARRAY_SIZE(anubis_ide1_resource),
288 .resource = anubis_ide1_resource,
289};
242 290
243/* Standard Anubis devices */ 291/* Standard Anubis devices */
244 292
@@ -249,6 +297,8 @@ static struct platform_device *anubis_devices[] __initdata = {
249 &s3c_device_i2c, 297 &s3c_device_i2c,
250 &s3c_device_rtc, 298 &s3c_device_rtc,
251 &s3c_device_nand, 299 &s3c_device_nand,
300 &anubis_device_ide0,
301 &anubis_device_ide1,
252}; 302};
253 303
254static struct clk *anubis_clocks[] = { 304static struct clk *anubis_clocks[] = {