aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf537/boards
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-bf537/boards
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-bf537/boards')
-rw-r--r--arch/blackfin/mach-bf537/boards/cm_bf537.c11
-rw-r--r--arch/blackfin/mach-bf537/boards/pnav10.c11
-rw-r--r--arch/blackfin/mach-bf537/boards/stamp.c11
-rw-r--r--arch/blackfin/mach-bf537/boards/tcm_bf537.c11
4 files changed, 44 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537.c b/arch/blackfin/mach-bf537/boards/cm_bf537.c
index 2a87d1cfcd06..3681d2cb40b3 100644
--- a/arch/blackfin/mach-bf537/boards/cm_bf537.c
+++ b/arch/blackfin/mach-bf537/boards/cm_bf537.c
@@ -223,6 +223,14 @@ static struct platform_device hitachi_fb_device = {
223#endif 223#endif
224 224
225#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 225#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
226#include <linux/smc91x.h>
227
228static struct smc91x_platdata smc91x_info = {
229 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
230 .leda = RPC_LED_100_10,
231 .ledb = RPC_LED_TX_RX,
232};
233
226static struct resource smc91x_resources[] = { 234static struct resource smc91x_resources[] = {
227 { 235 {
228 .start = 0x20200300, 236 .start = 0x20200300,
@@ -240,6 +248,9 @@ static struct platform_device smc91x_device = {
240 .id = 0, 248 .id = 0,
241 .num_resources = ARRAY_SIZE(smc91x_resources), 249 .num_resources = ARRAY_SIZE(smc91x_resources),
242 .resource = smc91x_resources, 250 .resource = smc91x_resources,
251 .dev = {
252 .platform_data = &smc91x_info,
253 },
243}; 254};
244#endif 255#endif
245 256
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 = {
92#endif 92#endif
93 93
94#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 94#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
95#include <linux/smc91x.h>
96
97static struct smc91x_platdata smc91x_info = {
98 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
99 .leda = RPC_LED_100_10,
100 .ledb = RPC_LED_TX_RX,
101};
102
95static struct resource smc91x_resources[] = { 103static struct resource smc91x_resources[] = {
96 { 104 {
97 .name = "smc91x-regs", 105 .name = "smc91x-regs",
@@ -110,6 +118,9 @@ static struct platform_device smc91x_device = {
110 .id = 0, 118 .id = 0,
111 .num_resources = ARRAY_SIZE(smc91x_resources), 119 .num_resources = ARRAY_SIZE(smc91x_resources),
112 .resource = smc91x_resources, 120 .resource = smc91x_resources,
121 .dev = {
122 .platform_data = &smc91x_info,
123 },
113}; 124};
114#endif 125#endif
115 126
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index 192e34ea3f2f..313249e6c94c 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -171,6 +171,14 @@ static struct platform_device rtc_device = {
171#endif 171#endif
172 172
173#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 173#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
174#include <linux/smc91x.h>
175
176static struct smc91x_platdata smc91x_info = {
177 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
178 .leda = RPC_LED_100_10,
179 .ledb = RPC_LED_TX_RX,
180};
181
174static struct resource smc91x_resources[] = { 182static struct resource smc91x_resources[] = {
175 { 183 {
176 .name = "smc91x-regs", 184 .name = "smc91x-regs",
@@ -189,6 +197,9 @@ static struct platform_device smc91x_device = {
189 .id = 0, 197 .id = 0,
190 .num_resources = ARRAY_SIZE(smc91x_resources), 198 .num_resources = ARRAY_SIZE(smc91x_resources),
191 .resource = smc91x_resources, 199 .resource = smc91x_resources,
200 .dev = {
201 .platform_data = &smc91x_info,
202 },
192}; 203};
193#endif 204#endif
194 205
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c
index e523e6e610d0..97a86b4ce96d 100644
--- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c
+++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c
@@ -223,6 +223,14 @@ static struct platform_device hitachi_fb_device = {
223#endif 223#endif
224 224
225#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 225#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
226#include <linux/smc91x.h>
227
228static struct smc91x_platdata smc91x_info = {
229 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
230 .leda = RPC_LED_100_10,
231 .ledb = RPC_LED_TX_RX,
232};
233
226static struct resource smc91x_resources[] = { 234static struct resource smc91x_resources[] = {
227 { 235 {
228 .start = 0x20200300, 236 .start = 0x20200300,
@@ -240,6 +248,9 @@ static struct platform_device smc91x_device = {
240 .id = 0, 248 .id = 0,
241 .num_resources = ARRAY_SIZE(smc91x_resources), 249 .num_resources = ARRAY_SIZE(smc91x_resources),
242 .resource = smc91x_resources, 250 .resource = smc91x_resources,
251 .dev = {
252 .platform_data = &smc91x_info,
253 },
243}; 254};
244#endif 255#endif
245 256