From 1d2e9a66d5b5837412660623c608a86388072ac1 Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Mon, 12 Mar 2007 15:12:27 +0900 Subject: [PATCH] --- yaml --- r: 54347 b: refs/heads/master c: f987fc880d191bf2ef66ac17e9d524aee6afa02e h: refs/heads/master i: 54345: 1da1dad4b82c0dbcd208eca4392d9aef6e1d188e 54343: cd8626fd97d1ea5df1a3e4538d53ec07513c4abc v: v3 --- [refs] | 2 +- trunk/arch/sh/boards/se/770x/setup.c | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a182ead96800..7b4360c7968e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 32351a28a7e1f2c68afbe559dd35e1ad0301be6d +refs/heads/master: f987fc880d191bf2ef66ac17e9d524aee6afa02e diff --git a/trunk/arch/sh/boards/se/770x/setup.c b/trunk/arch/sh/boards/se/770x/setup.c index 45cbc36b9fb7..dab5510699a0 100644 --- a/trunk/arch/sh/boards/se/770x/setup.c +++ b/trunk/arch/sh/boards/se/770x/setup.c @@ -63,6 +63,31 @@ static void __init smsc_setup(char **cmdline_p) outb_p(CONFIG_EXIT, CONFIG_PORT); } + +static struct resource cf_ide_resources[] = { + [0] = { + .start = PA_MRSHPC_IO + 0x1f0, + .end = PA_MRSHPC_IO + 0x1f0 + 8, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = PA_MRSHPC_IO + 0x1f0 + 0x206, + .end = PA_MRSHPC_IO + 0x1f0 +8 + 0x206 + 8, + .flags = IORESOURCE_MEM, + }, + [2] = { + .start = 7, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device cf_ide_device = { + .name = "pata_platform", + .id = -1, + .num_resources = ARRAY_SIZE(cf_ide_resources), + .resource = cf_ide_resources, +}; + static unsigned char heartbeat_bit_pos[] = { 8, 9, 10, 11, 12, 13, 14, 15 }; static struct resource heartbeat_resources[] = { @@ -85,6 +110,7 @@ static struct platform_device heartbeat_device = { static struct platform_device *se_devices[] __initdata = { &heartbeat_device, + &cf_ide_device, }; static int __init se_devices_setup(void)