|
@@ -23,6 +23,7 @@
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/mtd.h>
|
|
#include <linux/mtd/partitions.h>
|
|
#include <linux/mtd/partitions.h>
|
|
#include <linux/input.h>
|
|
#include <linux/input.h>
|
|
|
|
+#include <linux/smc91x.h>
|
|
|
|
|
|
#include <mach/hardware.h>
|
|
#include <mach/hardware.h>
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach-types.h>
|
|
@@ -142,6 +143,11 @@ static struct platform_device innovator_kp_device = {
|
|
.resource = innovator_kp_resources,
|
|
.resource = innovator_kp_resources,
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+static struct smc91x_platdata innovator_smc91x_info = {
|
|
|
|
+ .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
|
|
|
|
+ .leda = RPC_LED_100_10,
|
|
|
|
+ .ledb = RPC_LED_TX_RX,
|
|
|
|
+};
|
|
|
|
|
|
#ifdef CONFIG_ARCH_OMAP15XX
|
|
#ifdef CONFIG_ARCH_OMAP15XX
|
|
|
|
|
|
@@ -175,6 +181,9 @@ static struct resource innovator1510_smc91x_resources[] = {
|
|
static struct platform_device innovator1510_smc91x_device = {
|
|
static struct platform_device innovator1510_smc91x_device = {
|
|
.name = "smc91x",
|
|
.name = "smc91x",
|
|
.id = 0,
|
|
.id = 0,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &innovator_smc91x_info,
|
|
|
|
+ },
|
|
.num_resources = ARRAY_SIZE(innovator1510_smc91x_resources),
|
|
.num_resources = ARRAY_SIZE(innovator1510_smc91x_resources),
|
|
.resource = innovator1510_smc91x_resources,
|
|
.resource = innovator1510_smc91x_resources,
|
|
};
|
|
};
|
|
@@ -241,6 +250,9 @@ static struct resource innovator1610_smc91x_resources[] = {
|
|
static struct platform_device innovator1610_smc91x_device = {
|
|
static struct platform_device innovator1610_smc91x_device = {
|
|
.name = "smc91x",
|
|
.name = "smc91x",
|
|
.id = 0,
|
|
.id = 0,
|
|
|
|
+ .dev = {
|
|
|
|
+ .platform_data = &innovator_smc91x_info,
|
|
|
|
+ },
|
|
.num_resources = ARRAY_SIZE(innovator1610_smc91x_resources),
|
|
.num_resources = ARRAY_SIZE(innovator1610_smc91x_resources),
|
|
.resource = innovator1610_smc91x_resources,
|
|
.resource = innovator1610_smc91x_resources,
|
|
};
|
|
};
|