diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2009-07-24 12:48:31 +0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-17 05:32:00 +0400 |
commit | 61f09b5a09fb3962bbd3990a9a5a8470197955bb (patch) | |
tree | 04ce9771f1a31e45f43210614939c4110d9466e0 /arch/blackfin/mach-bf537/boards/pnav10.c | |
parent | 2fff7f8800e3567adf74e29b91ad192761d8fb3c (diff) | |
download | linux-61f09b5a09fb3962bbd3990a9a5a8470197955bb.tar.xz |
Blackfin: convert boards to use platform data with smc91x
Latest smc91x driver allows you to specify settings in board resources
rather than needing CONFIG_BLACKFIN in the drivers/net/smc91x.h header.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf537/boards/pnav10.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/pnav10.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c index 838240f151f5..3bbe10227bfb 100644 --- a/arch/blackfin/mach-bf537/boards/pnav10.c +++ b/arch/blackfin/mach-bf537/boards/pnav10.c @@ -92,6 +92,14 @@ static struct platform_device rtc_device = { #endif #if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) +#include <linux/smc91x.h> + +static struct smc91x_platdata smc91x_info = { + .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, + .leda = RPC_LED_100_10, + .ledb = RPC_LED_TX_RX, +}; + static struct resource smc91x_resources[] = { { .name = "smc91x-regs", @@ -110,6 +118,9 @@ static struct platform_device smc91x_device = { .id = 0, .num_resources = ARRAY_SIZE(smc91x_resources), .resource = smc91x_resources, + .dev = { + .platform_data = &smc91x_info, + }, }; #endif |