Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120163
b: refs/heads/master
c: 2ea40de
h: refs/heads/master
i:
  120161: 4ec4991
  120159: 2ee041b
v: v3
  • Loading branch information
Paul Mundt committed Dec 22, 2008
1 parent 1a14fcb commit a9a88b4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5868e8cdeb35cd9ddc3a541f81f318b0f6772b3
refs/heads/master: 2ea40dec26da89702dface74365cd16cea9ded6c
29 changes: 20 additions & 9 deletions trunk/arch/sh/boards/mach-sh03/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,22 @@ static void __init sh03_setup(char **cmdline_p)
board_time_init = sh03_time_init;
}

static struct resource cf_ide_resources[3];
static struct resource cf_ide_resources[] = {
[0] = {
.start = 0x1f0,
.end = 0x1f0 + 8,
.flags = IORESOURCE_IO,
},
[1] = {
.start = 0x1f0 + 0x206,
.end = 0x1f0 +8 + 0x206 + 8,
.flags = IORESOURCE_IO,
},
[2] = {
.start = IRL2_IRQ,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device cf_ide_device = {
.name = "pata_platform",
Expand Down Expand Up @@ -74,14 +89,10 @@ static int __init sh03_devices_setup(void)
}

/* IDE cmd address : 0x1f0-0x1f7 and 0x3f6 */
cf_ide_resources[0].start = (unsigned long)cf_ide_base + 0x40;
cf_ide_resources[0].end = (unsigned long)cf_ide_base + 0x40 + 0x0f;
cf_ide_resources[0].flags = IORESOURCE_IO;
cf_ide_resources[1].start = (unsigned long)cf_ide_base + 0x2c;
cf_ide_resources[1].end = (unsigned long)cf_ide_base + 0x2c + 0x03;
cf_ide_resources[1].flags = IORESOURCE_IO;
cf_ide_resources[2].start = IRQ_FATA;
cf_ide_resources[2].flags = IORESOURCE_IRQ;
cf_ide_resources[0].start += (unsigned long)cf_ide_base;
cf_ide_resources[0].end += (unsigned long)cf_ide_base;
cf_ide_resources[1].start += (unsigned long)cf_ide_base;
cf_ide_resources[1].end += (unsigned long)cf_ide_base;

return platform_add_devices(sh03_devices, ARRAY_SIZE(sh03_devices));
}
Expand Down

0 comments on commit a9a88b4

Please sign in to comment.