aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-12-21 13:25:04 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:44:49 -0500
commit2ea40dec26da89702dface74365cd16cea9ded6c (patch)
treedbba39ed83384e8a5319b94ad5c2acd70c4207aa /arch
parentb5868e8cdeb35cd9ddc3a541f81f318b0f6772b3 (diff)
sh: mach-sh03: Fix up pata_platform build breakage.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/boards/mach-sh03/setup.c29
1 files changed, 20 insertions, 9 deletions
diff --git a/arch/sh/boards/mach-sh03/setup.c b/arch/sh/boards/mach-sh03/setup.c
index 42550bb5505d..74cfb4b8b03d 100644
--- a/arch/sh/boards/mach-sh03/setup.c
+++ b/arch/sh/boards/mach-sh03/setup.c
@@ -29,7 +29,22 @@ static void __init sh03_setup(char **cmdline_p)
29 board_time_init = sh03_time_init; 29 board_time_init = sh03_time_init;
30} 30}
31 31
32static struct resource cf_ide_resources[3]; 32static struct resource cf_ide_resources[] = {
33 [0] = {
34 .start = 0x1f0,
35 .end = 0x1f0 + 8,
36 .flags = IORESOURCE_IO,
37 },
38 [1] = {
39 .start = 0x1f0 + 0x206,
40 .end = 0x1f0 +8 + 0x206 + 8,
41 .flags = IORESOURCE_IO,
42 },
43 [2] = {
44 .start = IRL2_IRQ,
45 .flags = IORESOURCE_IRQ,
46 },
47};
33 48
34static struct platform_device cf_ide_device = { 49static struct platform_device cf_ide_device = {
35 .name = "pata_platform", 50 .name = "pata_platform",
@@ -74,14 +89,10 @@ static int __init sh03_devices_setup(void)
74 } 89 }
75 90
76 /* IDE cmd address : 0x1f0-0x1f7 and 0x3f6 */ 91 /* IDE cmd address : 0x1f0-0x1f7 and 0x3f6 */
77 cf_ide_resources[0].start = (unsigned long)cf_ide_base + 0x40; 92 cf_ide_resources[0].start += (unsigned long)cf_ide_base;
78 cf_ide_resources[0].end = (unsigned long)cf_ide_base + 0x40 + 0x0f; 93 cf_ide_resources[0].end += (unsigned long)cf_ide_base;
79 cf_ide_resources[0].flags = IORESOURCE_IO; 94 cf_ide_resources[1].start += (unsigned long)cf_ide_base;
80 cf_ide_resources[1].start = (unsigned long)cf_ide_base + 0x2c; 95 cf_ide_resources[1].end += (unsigned long)cf_ide_base;
81 cf_ide_resources[1].end = (unsigned long)cf_ide_base + 0x2c + 0x03;
82 cf_ide_resources[1].flags = IORESOURCE_IO;
83 cf_ide_resources[2].start = IRQ_FATA;
84 cf_ide_resources[2].flags = IORESOURCE_IRQ;
85 96
86 return platform_add_devices(sh03_devices, ARRAY_SIZE(sh03_devices)); 97 return platform_add_devices(sh03_devices, ARRAY_SIZE(sh03_devices));
87} 98}