Commit 02da916a authored by Steve Glendinning's avatar Steve Glendinning Committed by Paul Mundt

sh: convert magicpanelr2 platform to use smsc911x.

Signed-off-by: default avatarSteve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 90b76491
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/smsc911x.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h> #include <linux/mtd/physmap.h>
...@@ -242,7 +243,7 @@ static void __init mpr2_setup(char **cmdline_p) ...@@ -242,7 +243,7 @@ static void __init mpr2_setup(char **cmdline_p)
printk(KERN_WARNING "Ethernet not ready\n"); printk(KERN_WARNING "Ethernet not ready\n");
} }
static struct resource smc911x_resources[] = { static struct resource smsc911x_resources[] = {
[0] = { [0] = {
.start = 0xa8000000, .start = 0xa8000000,
.end = 0xabffffff, .end = 0xabffffff,
...@@ -255,11 +256,21 @@ static struct resource smc911x_resources[] = { ...@@ -255,11 +256,21 @@ static struct resource smc911x_resources[] = {
}, },
}; };
static struct platform_device smc911x_device = { static struct smsc911x_platform_config smsc911x_config = {
.name = "smc911x", .phy_interface = PHY_INTERFACE_MODE_MII,
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
.flags = SMSC911X_USE_32BIT,
};
static struct platform_device smsc911x_device = {
.name = "smsc911x",
.id = -1, .id = -1,
.num_resources = ARRAY_SIZE(smc911x_resources), .num_resources = ARRAY_SIZE(smsc911x_resources),
.resource = smc911x_resources, .resource = smsc911x_resources,
.dev = {
.platform_data = &smsc911x_config,
},
}; };
static struct resource heartbeat_resources[] = { static struct resource heartbeat_resources[] = {
...@@ -360,7 +371,7 @@ static void __init set_mtd_partitions(void) ...@@ -360,7 +371,7 @@ static void __init set_mtd_partitions(void)
static struct platform_device *mpr2_devices[] __initdata = { static struct platform_device *mpr2_devices[] __initdata = {
&heartbeat_device, &heartbeat_device,
&smc911x_device, &smsc911x_device,
&flash_device, &flash_device,
}; };
......
...@@ -502,13 +502,30 @@ CONFIG_NETDEVICES=y ...@@ -502,13 +502,30 @@ CONFIG_NETDEVICES=y
# CONFIG_EQUALIZER is not set # CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set # CONFIG_TUN is not set
# CONFIG_VETH is not set # CONFIG_VETH is not set
# CONFIG_PHYLIB is not set CONFIG_PHYLIB=y
#
# MII PHY device drivers
#
# CONFIG_MARVELL_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_QSEMI_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_VITESSE_PHY is not set
CONFIG_SMSC_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_REALTEK_PHY is not set
# CONFIG_FIXED_PHY is not set
# CONFIG_MDIO_BITBANG is not set
CONFIG_NET_ETHERNET=y CONFIG_NET_ETHERNET=y
CONFIG_MII=y CONFIG_MII=y
# CONFIG_AX88796 is not set # CONFIG_AX88796 is not set
# CONFIG_STNIC is not set # CONFIG_STNIC is not set
# CONFIG_SMC91X is not set # CONFIG_SMC91X is not set
CONFIG_SMC911X=y # CONFIG_SMC911X is not set
CONFIG_SMSC911X=y
# CONFIG_IBM_NEW_EMAC_ZMII is not set # CONFIG_IBM_NEW_EMAC_ZMII is not set
# CONFIG_IBM_NEW_EMAC_RGMII is not set # CONFIG_IBM_NEW_EMAC_RGMII is not set
# CONFIG_IBM_NEW_EMAC_TAH is not set # CONFIG_IBM_NEW_EMAC_TAH is not set
......
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