linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX6Q: Add fixup for RTL8211E Gigabit Ethernet PHY
@ 2015-03-03 17:42 Andrey Panov
  2015-03-03 23:29 ` Arnd Bergmann
  0 siblings, 1 reply; 11+ messages in thread
From: Andrey Panov @ 2015-03-03 17:42 UTC (permalink / raw)
  To: linux-arm-kernel

RTL8211E Ethernet PHY found in Embedsky E9 board is need
an additional initialization.
Taken from vendor's binary-only module.

Signed-off-by: Andrey Panov <rockford@yandex.ru>
---
 arch/arm/mach-imx/mach-imx6q.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 4ad6e47..41708f5 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -166,6 +166,18 @@ static int ar8035_phy_fixup(struct phy_device *dev)
 
 #define PHY_ID_AR8035 0x004dd072
 
+static int rtl8211e_phy_fixup(struct phy_device *dev)
+{
+	phy_write(dev, 0x00, 0x3140);
+	mdelay(10);
+	phy_write(dev, 0x00, 0x3340);
+	mdelay(10);
+
+	return 0;
+}
+
+#define PHY_ID_RTL8211E 0x001cc915
+
 static void __init imx6q_enet_phy_init(void)
 {
 	if (IS_BUILTIN(CONFIG_PHYLIB)) {
@@ -177,6 +189,8 @@ static void __init imx6q_enet_phy_init(void)
 				ar8031_phy_fixup);
 		phy_register_fixup_for_uid(PHY_ID_AR8035, 0xffffffef,
 				ar8035_phy_fixup);
+		phy_register_fixup_for_uid(PHY_ID_RTL8211E, 0xffffffff,
+				rtl8211e_phy_fixup);
 	}
 }
 
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-03-05  6:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1424892206-18679-1-git-send-email-rockford@yandex.ru>
2015-02-25 19:34 ` [PATCH] ARM: i.MX6Q: Add fixup for RTL8211E Gigabit Ethernet PHY Marc Kleine-Budde
2015-03-03  2:57   ` Shawn Guo
2015-03-03 17:42 Andrey Panov
2015-03-03 23:29 ` Arnd Bergmann
2015-03-04 19:08   ` Панов Андрей
2015-03-04 19:44     ` Arnd Bergmann
2015-03-04 20:05       ` Панов Андрей
2015-03-04 20:18         ` Fabio Estevam
2015-03-04 20:32           ` Панов Андрей
2015-03-04 21:31             ` Arnd Bergmann
2015-03-05  6:40               ` Панов Андрей

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).