Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54032
b: refs/heads/master
c: a17dba8
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed May 3, 2007
1 parent f82a9e8 commit 01b10a9
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 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: 69f4f331a0f78470f0bc42ba8db8d6cdd9cae4a9
refs/heads/master: a17dba8df9848c548912fbe9bf4b28c5a67c5413
35 changes: 35 additions & 0 deletions trunk/arch/arm/mach-rpc/riscpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/sched.h>
#include <linux/device.h>
#include <linux/serial_8250.h>
#include <linux/pata_platform.h>

#include <asm/elf.h>
#include <asm/io.h>
Expand Down Expand Up @@ -159,11 +160,45 @@ static struct platform_device serial_device = {
},
};

static struct pata_platform_info pata_platform_data = {
.ioport_shift = 2,
};

static struct resource pata_resources[] = {
[0] = {
.start = 0x030107c0,
.end = 0x030107df,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = 0x03010fd8,
.end = 0x03010fdb,
.flags = IORESOURCE_MEM,
},
[2] = {
.start = IRQ_HARDDISK,
.end = IRQ_HARDDISK,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device pata_device = {
.name = "pata_platform",
.id = -1,
.num_resources = ARRAY_SIZE(pata_resources),
.resource = pata_resources,
.dev = {
.platform_data = &pata_platform_data,
.coherent_dma_mask = ~0, /* grumble */
},
};

static struct platform_device *devs[] __initdata = {
&iomd_device,
&kbd_device,
&serial_device,
&acornfb_device,
&pata_device,
};

static int __init rpc_init(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/ata/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ config PATA_WINBOND_VLB

config PATA_PLATFORM
tristate "Generic platform device PATA support"
depends on EMBEDDED
depends on EMBEDDED || ARCH_RPC
help
This option enables support for generic directly connected ATA
devices commonly found on embedded systems.
Expand Down

0 comments on commit 01b10a9

Please sign in to comment.