aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2009-07-24 04:48:31 -0400
committerMike Frysinger <vapier@gentoo.org>2009-09-16 21:32:00 -0400
commit61f09b5a09fb3962bbd3990a9a5a8470197955bb (patch)
tree04ce9771f1a31e45f43210614939c4110d9466e0 /arch/blackfin/mach-bf527
parent2fff7f8800e3567adf74e29b91ad192761d8fb3c (diff)
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-bf527')
-rw-r--r--arch/blackfin/mach-bf527/boards/cm_bf527.c11
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c11
2 files changed, 22 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c
index 85f9ac56c6c9..cb360e99f1dc 100644
--- a/arch/blackfin/mach-bf527/boards/cm_bf527.c
+++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c
@@ -275,6 +275,14 @@ static struct platform_device rtc_device = {
275#endif 275#endif
276 276
277#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 277#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
278#include <linux/smc91x.h>
279
280static struct smc91x_platdata smc91x_info = {
281 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
282 .leda = RPC_LED_100_10,
283 .ledb = RPC_LED_TX_RX,
284};
285
278static struct resource smc91x_resources[] = { 286static struct resource smc91x_resources[] = {
279 { 287 {
280 .name = "smc91x-regs", 288 .name = "smc91x-regs",
@@ -293,6 +301,9 @@ static struct platform_device smc91x_device = {
293 .id = 0, 301 .id = 0,
294 .num_resources = ARRAY_SIZE(smc91x_resources), 302 .num_resources = ARRAY_SIZE(smc91x_resources),
295 .resource = smc91x_resources, 303 .resource = smc91x_resources,
304 .dev = {
305 .platform_data = &smc91x_info,
306 },
296}; 307};
297#endif 308#endif
298 309
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index b843d0e3f679..617a28738438 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -292,6 +292,14 @@ static struct platform_device rtc_device = {
292#endif 292#endif
293 293
294#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 294#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
295#include <linux/smc91x.h>
296
297static struct smc91x_platdata smc91x_info = {
298 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
299 .leda = RPC_LED_100_10,
300 .ledb = RPC_LED_TX_RX,
301};
302
295static struct resource smc91x_resources[] = { 303static struct resource smc91x_resources[] = {
296 { 304 {
297 .name = "smc91x-regs", 305 .name = "smc91x-regs",
@@ -310,6 +318,9 @@ static struct platform_device smc91x_device = {
310 .id = 0, 318 .id = 0,
311 .num_resources = ARRAY_SIZE(smc91x_resources), 319 .num_resources = ARRAY_SIZE(smc91x_resources),
312 .resource = smc91x_resources, 320 .resource = smc91x_resources,
321 .dev = {
322 .platform_data = &smc91x_info,
323 },
313}; 324};
314#endif 325#endif
315 326