aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-fsample.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-fsample.c')
-rw-r--r--arch/arm/mach-omap1/board-fsample.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c
index f4b72c1654f5..91e7b2f2bc05 100644
--- a/arch/arm/mach-omap1/board-fsample.c
+++ b/arch/arm/mach-omap1/board-fsample.c
@@ -19,6 +19,7 @@
19#include <linux/mtd/nand.h> 19#include <linux/mtd/nand.h>
20#include <linux/mtd/partitions.h> 20#include <linux/mtd/partitions.h>
21#include <linux/input.h> 21#include <linux/input.h>
22#include <linux/smc91x.h>
22 23
23#include <mach/hardware.h> 24#include <mach/hardware.h>
24#include <asm/mach-types.h> 25#include <asm/mach-types.h>
@@ -100,6 +101,12 @@ static int fsample_keymap[] = {
100 0 101 0
101}; 102};
102 103
104static struct smc91x_platdata smc91x_info = {
105 .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
106 .leda = RPC_LED_100_10,
107 .ledb = RPC_LED_TX_RX,
108};
109
103static struct resource smc91x_resources[] = { 110static struct resource smc91x_resources[] = {
104 [0] = { 111 [0] = {
105 .start = H2P2_DBG_FPGA_ETHR_START, /* Physical */ 112 .start = H2P2_DBG_FPGA_ETHR_START, /* Physical */
@@ -190,6 +197,9 @@ static struct platform_device nand_device = {
190static struct platform_device smc91x_device = { 197static struct platform_device smc91x_device = {
191 .name = "smc91x", 198 .name = "smc91x",
192 .id = 0, 199 .id = 0,
200 .dev = {
201 .platform_data = &smc91x_info,
202 },
193 .num_resources = ARRAY_SIZE(smc91x_resources), 203 .num_resources = ARRAY_SIZE(smc91x_resources),
194 .resource = smc91x_resources, 204 .resource = smc91x_resources,
195}; 205};