aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf561
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-bf561
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-bf561')
-rw-r--r--arch/blackfin/mach-bf561/boards/cm_bf561.c10
-rw-r--r--arch/blackfin/mach-bf561/boards/ezkit.c11
2 files changed, 21 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf561/boards/cm_bf561.c b/arch/blackfin/mach-bf561/boards/cm_bf561.c
index 0c9d72c5f5ba..ebb07554fb09 100644
--- a/arch/blackfin/mach-bf561/boards/cm_bf561.c
+++ b/arch/blackfin/mach-bf561/boards/cm_bf561.c
@@ -213,6 +213,13 @@ static struct platform_device hitachi_fb_device = {
213 213
214 214
215#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 215#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
216#include <linux/smc91x.h>
217
218static struct smc91x_platdata smc91x_info = {
219 .flags = SMC91X_USE_32BIT | SMC91X_NOWAIT,
220 .leda = RPC_LED_100_10,
221 .ledb = RPC_LED_TX_RX,
222};
216 223
217static struct resource smc91x_resources[] = { 224static struct resource smc91x_resources[] = {
218 { 225 {
@@ -231,6 +238,9 @@ static struct platform_device smc91x_device = {
231 .id = 0, 238 .id = 0,
232 .num_resources = ARRAY_SIZE(smc91x_resources), 239 .num_resources = ARRAY_SIZE(smc91x_resources),
233 .resource = smc91x_resources, 240 .resource = smc91x_resources,
241 .dev = {
242 .platform_data = &smc91x_info,
243 },
234}; 244};
235#endif 245#endif
236 246
diff --git a/arch/blackfin/mach-bf561/boards/ezkit.c b/arch/blackfin/mach-bf561/boards/ezkit.c
index 4df904f9e90a..10edc998bebf 100644
--- a/arch/blackfin/mach-bf561/boards/ezkit.c
+++ b/arch/blackfin/mach-bf561/boards/ezkit.c
@@ -147,6 +147,14 @@ static struct platform_device net2272_bfin_device = {
147 * Driver needs to know address, irq and flag pin. 147 * Driver needs to know address, irq and flag pin.
148 */ 148 */
149#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE) 149#if defined(CONFIG_SMC91X) || defined(CONFIG_SMC91X_MODULE)
150#include <linux/smc91x.h>
151
152static struct smc91x_platdata smc91x_info = {
153 .flags = SMC91X_USE_32BIT | SMC91X_NOWAIT,
154 .leda = RPC_LED_100_10,
155 .ledb = RPC_LED_TX_RX,
156};
157
150static struct resource smc91x_resources[] = { 158static struct resource smc91x_resources[] = {
151 { 159 {
152 .name = "smc91x-regs", 160 .name = "smc91x-regs",
@@ -166,6 +174,9 @@ static struct platform_device smc91x_device = {
166 .id = 0, 174 .id = 0,
167 .num_resources = ARRAY_SIZE(smc91x_resources), 175 .num_resources = ARRAY_SIZE(smc91x_resources),
168 .resource = smc91x_resources, 176 .resource = smc91x_resources,
177 .dev = {
178 .platform_data = &smc91x_info,
179 },
169}; 180};
170#endif 181#endif
171 182