Skip to content

Commit

Permalink
sh: convert rsk7203 to use smsc911x.
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Steve Glendinning authored and Paul Mundt committed Jan 21, 2009
1 parent 02da916 commit 8ed3592
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
24 changes: 13 additions & 11 deletions arch/sh/boards/mach-rsk/devices-rsk7203.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,21 @@
#include <linux/mtd/partitions.h>
#include <linux/mtd/physmap.h>
#include <linux/mtd/map.h>
#include <linux/smc911x.h>
#include <linux/smsc911x.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <asm/machvec.h>
#include <asm/io.h>
#include <cpu/sh7203.h>

static struct smc911x_platdata smc911x_info = {
.flags = SMC911X_USE_16BIT,
.irq_flags = IRQF_TRIGGER_LOW,
static struct smsc911x_platform_config smsc911x_config = {
.phy_interface = PHY_INTERFACE_MODE_MII,
.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
.irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
.flags = SMSC911X_USE_16BIT,
};

static struct resource smc911x_resources[] = {
static struct resource smsc911x_resources[] = {
[0] = {
.start = 0x24000000,
.end = 0x24000000 + 0x100,
Expand All @@ -40,13 +42,13 @@ static struct resource smc911x_resources[] = {
},
};

static struct platform_device smc911x_device = {
.name = "smc911x",
static struct platform_device smsc911x_device = {
.name = "smsc911x",
.id = -1,
.num_resources = ARRAY_SIZE(smc911x_resources),
.resource = smc911x_resources,
.num_resources = ARRAY_SIZE(smsc911x_resources),
.resource = smsc911x_resources,
.dev = {
.platform_data = &smc911x_info,
.platform_data = &smsc911x_config,
},
};

Expand Down Expand Up @@ -87,7 +89,7 @@ static struct platform_device led_device = {
};

static struct platform_device *rsk7203_devices[] __initdata = {
&smc911x_device,
&smsc911x_device,
&led_device,
};

Expand Down
21 changes: 19 additions & 2 deletions arch/sh/configs/rsk7203_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,30 @@ CONFIG_NETDEVICES=y
# CONFIG_EQUALIZER is not set
# CONFIG_TUN 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_MII=y
# CONFIG_AX88796 is not set
# CONFIG_STNIC 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_RGMII is not set
# CONFIG_IBM_NEW_EMAC_TAH is not set
Expand Down

0 comments on commit 8ed3592

Please sign in to comment.