Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123643
b: refs/heads/master
c: 0a5b2f6
h: refs/heads/master
i:
  123641: e4c2d10
  123639: 89ea72d
v: v3
  • Loading branch information
Catalin Marinas committed Dec 1, 2008
1 parent b9b40da commit 5af6bb2
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 0a3813306f432e8925ff648c84bd488b840e5185
refs/heads/master: 0a5b2f6be708bb6a2388b9f188cf0c48a33b1d5f
9 changes: 9 additions & 0 deletions trunk/arch/arm/mach-realview/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/io.h>
#include <linux/smc911x.h>

#include <asm/system.h>
#include <mach/hardware.h>
Expand Down Expand Up @@ -125,6 +126,12 @@ int realview_flash_register(struct resource *res, u32 num)
return platform_device_register(&realview_flash_device);
}

static struct smc911x_platdata realview_smc911x_platdata = {
.flags = SMC911X_USE_32BIT,
.irq_flags = IRQF_SHARED,
.irq_polarity = 1,
};

static struct platform_device realview_eth_device = {
.name = "smc911x",
.id = 0,
Expand All @@ -136,6 +143,8 @@ int realview_eth_register(const char *name, struct resource *res)
if (name)
realview_eth_device.name = name;
realview_eth_device.resource = res;
if (strcmp(realview_eth_device.name, "smc911x") == 0)
realview_eth_device.dev.platform_data = &realview_smc911x_platdata;

return platform_device_register(&realview_eth_device);
}
Expand Down

0 comments on commit 5af6bb2

Please sign in to comment.