Commit 5c9a29ed authored by Steve Sakoman's avatar Steve Sakoman Committed by Tony Lindgren

omap: Overo: Add support for second ethernet port

Some Overo add-on boards include a second ethernet port.  This patch
adds support for that second port.
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 38e473a8
...@@ -63,6 +63,8 @@ ...@@ -63,6 +63,8 @@
#define OVERO_SMSC911X_CS 5 #define OVERO_SMSC911X_CS 5
#define OVERO_SMSC911X_GPIO 176 #define OVERO_SMSC911X_GPIO 176
#define OVERO_SMSC911X2_CS 4
#define OVERO_SMSC911X2_GPIO 65
#if defined(CONFIG_TOUCHSCREEN_ADS7846) || \ #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \
defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)
...@@ -137,6 +139,16 @@ static struct resource overo_smsc911x_resources[] = { ...@@ -137,6 +139,16 @@ static struct resource overo_smsc911x_resources[] = {
}, },
}; };
static struct resource overo_smsc911x2_resources[] = {
{
.name = "smsc911x2-memory",
.flags = IORESOURCE_MEM,
},
{
.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
},
};
static struct smsc911x_platform_config overo_smsc911x_config = { static struct smsc911x_platform_config overo_smsc911x_config = {
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN, .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
...@@ -146,7 +158,7 @@ static struct smsc911x_platform_config overo_smsc911x_config = { ...@@ -146,7 +158,7 @@ static struct smsc911x_platform_config overo_smsc911x_config = {
static struct platform_device overo_smsc911x_device = { static struct platform_device overo_smsc911x_device = {
.name = "smsc911x", .name = "smsc911x",
.id = -1, .id = 0,
.num_resources = ARRAY_SIZE(overo_smsc911x_resources), .num_resources = ARRAY_SIZE(overo_smsc911x_resources),
.resource = overo_smsc911x_resources, .resource = overo_smsc911x_resources,
.dev = { .dev = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment