Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54347
b: refs/heads/master
c: f987fc8
h: refs/heads/master
i:
  54345: 1da1dad
  54343: cd8626f
v: v3
  • Loading branch information
Nobuhiro Iwamatsu authored and Paul Mundt committed May 7, 2007
1 parent 6126f42 commit 1d2e9a6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32351a28a7e1f2c68afbe559dd35e1ad0301be6d
refs/heads/master: f987fc880d191bf2ef66ac17e9d524aee6afa02e
26 changes: 26 additions & 0 deletions trunk/arch/sh/boards/se/770x/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand All @@ -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)
Expand Down

0 comments on commit 1d2e9a6

Please sign in to comment.