Skip to contentSkip to conversation

emac: add missing support of 10mbit in emac/rgmii

PATCH Applied Ivan Mikhaylov 2 participants 2 messages May 26, 2014 – May 30, 2014

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

PATCH 1/2 emac: add missing support of 10mbit in emac/rgmii

In chips of emac/rgmii b'000' for 0/1 channel isn't suitable which resulted in non working network interface in this mode.

---
 drivers/net/ethernet/ibm/emac/rgmii.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/ethernet/ibm/emac/rgmii.c +3 -0
index 4fb2f96..a01182c 100644
@@ -45,6 +45,7 @@
 
 /* RGMIIx_SSR */
 #define RGMII_SSR_MASK(idx)	(0x7 << ((idx) * 8))
+#define RGMII_SSR_10(idx)	(0x1 << ((idx) * 8))
 #define RGMII_SSR_100(idx)	(0x2 << ((idx) * 8))
 #define RGMII_SSR_1000(idx)	(0x4 << ((idx) * 8))
 
@@ -139,6 +140,8 @@ void rgmii_set_speed(struct platform_device *ofdev, int input, int speed)
 		ssr |= RGMII_SSR_1000(input);
 	else if (speed == SPEED_100)
 		ssr |= RGMII_SSR_100(input);
+	else if (speed == SPEED_10)
+		ssr |= RGMII_SSR_10(input);
 
 	out_be32(&p->ssr, ssr);
 
Signature · 8 lines
1.9.3



--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#1 lore raw

From: Ivan Mikhaylov <[email protected]>
Date: Mon, 26 May 2014 22:24:17 +0400

Quoted 4 lines

In chips of emac/rgmii b'000' for 0/1 channel isn't suitable which resulted in non working network interface in this mode.

Applied.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html