Skip to contentSkip to conversation

phy: Add support PHY of SMSC

PATCH New Nobuhiro Iwamatsu 2 participants 3 messages Nov 24, 2011 – Dec 6, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: Add support PHY of SMSC

This add support PHY of SMSC.
Following phy can be used by set CONFIG_PHY_SMSC to config.
- SMSC LAN8700
- SMSC LAN8710/LAN8720
- SMSC LAN8710/LAN8720

A setup of PHY was copied from linux kenrel.

---
 drivers/net/phy/Makefile |    1 +
 drivers/net/phy/phy.c    |    3 +
 drivers/net/phy/smsc.c   |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 0 deletions(-)
 create mode 100644 drivers/net/phy/smsc.c
drivers/net/phy/Makefile +1 -0
index a59834b..feced39 100644
@@ -38,6 +38,7 @@ COBJS-$(CONFIG_PHY_MARVELL) += marvell.o
 COBJS-$(CONFIG_PHY_MICREL) += micrel.o
 COBJS-$(CONFIG_PHY_NATSEMI) += natsemi.o
 COBJS-$(CONFIG_PHY_REALTEK) += realtek.o
+COBJS-$(CONFIG_PHY_SMSC) += smsc.o
 COBJS-$(CONFIG_PHY_TERANETICS) += teranetics.o
 COBJS-$(CONFIG_PHY_VITESSE) += vitesse.o
 
drivers/net/phy/phy.c +3 -0
index 8da7688..eb55180 100644
@@ -444,6 +444,9 @@ int phy_init(void)
 #ifdef CONFIG_PHY_REALTEK
 	phy_realtek_init();
 #endif
+#ifdef CONFIG_PHY_SMSC
+	phy_smsc_init();
+#endif
 #ifdef CONFIG_PHY_TERANETICS
 	phy_teranetics_init();
 #endif
drivers/net/phy/smsc.c new file +92 -0

92 lines not on this page · raw message

Signature · 1 line
1.7.7
#1 lore raw

PATCH 1/1 phy: Add support PHY of SMSC

Dear Nobuhiro Iwamatsu,

Quoted 8 lines · In message <1322119455-29628-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…

This add support PHY of SMSC.
Following phy can be used by set CONFIG_PHY_SMSC to config.
- SMSC LAN8700
- SMSC LAN8710/LAN8720
- SMSC LAN8710/LAN8720

A setup of PHY was copied from linux kenrel.

Quoted 7 lines
---
 drivers/net/phy/Makefile |    1 +
 drivers/net/phy/phy.c    |    3 +
 drivers/net/phy/smsc.c   |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 0 deletions(-)
 create mode 100644 drivers/net/phy/smsc.c

This patch was not white-space-clean. Checkpatch reported 2 x ERROR:
trailing whitespace

Fixed when applying. I also changed the subject and commit messahe a
tiny bit.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Anarchy may not be the best form of government, but it's better  than
no government at all.
#2 lore raw

PATCH 1/1 phy: Add support PHY of SMSC

Hi,

2011/12/6 Wolfgang Denk <[email protected]>:

Quoted 19 lines

Dear Nobuhiro Iwamatsu,

Quoted 8 lines · In message <1322119455-29628-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com>…

This add support PHY of SMSC.
Following phy can be used by set CONFIG_PHY_SMSC to config. ?- SMSC LAN8700
?- SMSC LAN8710/LAN8720
?- SMSC LAN8710/LAN8720

A setup of PHY was copied from linux kenrel.

Quoted 7 lines

---

?drivers/net/phy/Makefile | ? ?1 +
?drivers/net/phy/phy.c ? ?| ? ?3 +
?drivers/net/phy/smsc.c ? | ? 92 ++++++++++++++++++++++++++++++++++++++++++++++

?3 files changed, 96 insertions(+), 0 deletions(-) ?create mode 100644 drivers/net/phy/smsc.c

Quoted 6 lines

This patch was not white-space-clean. Checkpatch reported 2 x ?ERROR:
trailing whitespace

Fixed when applying. ? I also changed the subject and commit messahe a tiny bit.

Sorry, and thanks!

Nobuhiro

Signature · 1 line
Nobuhiro Iwamatsu