Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91124
b: refs/heads/master
c: 387847e
h: refs/heads/master
v: v3
  • Loading branch information
Bahadir Balban authored and Catalin Marinas committed Apr 18, 2008
1 parent c005bcb commit 6acfd54
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: 78fdcb4287b5781d8175115430ca50e30899bf09
refs/heads/master: 387847ee0fb258a50032db81e216be4ec1350586
26 changes: 26 additions & 0 deletions trunk/arch/arm/mach-realview/realview_pb11mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,31 @@ static struct platform_device realview_pb11mp_smsc911x_device = {
.resource = realview_pb11mp_smsc911x_resources,
};

struct resource realview_pb11mp_cf_resources[] = {
[0] = {
.start = REALVIEW_PB11MP_CF_BASE,
.end = REALVIEW_PB11MP_CF_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = REALVIEW_PB11MP_CF_MEM_BASE,
.end = REALVIEW_PB11MP_CF_MEM_BASE + SZ_4K - 1,
.flags = IORESOURCE_MEM,
},
[2] = {
.start = -1, /* FIXME: Find correct irq */
.end = -1,
.flags = IORESOURCE_IRQ,
},
};

struct platform_device realview_pb11mp_cf_device = {
.name = "compactflash",
.id = 0,
.num_resources = ARRAY_SIZE(realview_pb11mp_cf_resources),
.resource = realview_pb11mp_cf_resources,
};

static void __init gic_init_irq(void)
{
unsigned int pldctrl;
Expand Down Expand Up @@ -291,6 +316,7 @@ static void __init realview_pb11mp_init(void)
ARRAY_SIZE(realview_pb11mp_flash_resource));
platform_device_register(&realview_pb11mp_smsc911x_device);
platform_device_register(&realview_i2c_device);
platform_device_register(&realview_pb11mp_cf_device);

for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i];
Expand Down

0 comments on commit 6acfd54

Please sign in to comment.