* [U-Boot] [PATCH] board/t1040qds: Add sgmii ports support in 0xA7 protocol
@ 2014-09-08 7:50 Priyanka Jain
2014-09-25 16:48 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Priyanka Jain @ 2014-09-08 7:50 UTC (permalink / raw)
To: u-boot
T1042QDS (T1042 is T1040 Personality without L2 switch) supports following
sgmii interfaces with serdes protocol 0xA7
-SGMII-MAC3 on Lane B - slot 7
-SGMII-MAC5 on Lane H - slot 7
-SGMII2.5G-MAC1 on Lane C - slot 6
-SGMII2.5G-MAC2 on Lane D - slot 5
Add support of above sgmii interfaces
Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
---
board/freescale/t1040qds/eth.c | 4 ++++
drivers/net/fm/t1040.c | 2 --
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/board/freescale/t1040qds/eth.c b/board/freescale/t1040qds/eth.c
index 1929bba..06d9086 100644
--- a/board/freescale/t1040qds/eth.c
+++ b/board/freescale/t1040qds/eth.c
@@ -241,6 +241,8 @@ static void initialize_lane_to_slot(void)
break;
case 0xA7:
lane_to_slot[1] = 7;
+ lane_to_slot[2] = 6;
+ lane_to_slot[3] = 5;
lane_to_slot[7] = 7;
break;
case 0xAA:
@@ -410,6 +412,8 @@ void t1040_handle_phy_interface_sgmii(int i)
fm_info_set_phy_address(i, riser_phy_addr[1]);
if (FM1_DTSEC3 == i)
fm_info_set_phy_address(i, riser_phy_addr[2]);
+ if (FM1_DTSEC5 == i)
+ fm_info_set_phy_address(i, riser_phy_addr[3]);
mdio_mux[i] = EMI1_SLOT7;
fm_info_set_mdio(i, mii_dev_for_muxval(mdio_mux[i]));
diff --git a/drivers/net/fm/t1040.c b/drivers/net/fm/t1040.c
index bcc871d..4cce46d 100644
--- a/drivers/net/fm/t1040.c
+++ b/drivers/net/fm/t1040.c
@@ -49,8 +49,6 @@ phy_interface_t fman_port_enet_if(enum fm_port port)
else if ((rcwsr13 & FSL_CORENET_RCWSR13_EC2) ==
FSL_CORENET_RCWSR13_EC2_FM1_DTSEC5_MII)
return PHY_INTERFACE_MODE_MII;
- else
- return PHY_INTERFACE_MODE_NONE;
}
switch (port) {
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] board/t1040qds: Add sgmii ports support in 0xA7 protocol
2014-09-08 7:50 [U-Boot] [PATCH] board/t1040qds: Add sgmii ports support in 0xA7 protocol Priyanka Jain
@ 2014-09-25 16:48 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2014-09-25 16:48 UTC (permalink / raw)
To: u-boot
On 09/08/2014 12:50 AM, Priyanka Jain wrote:
> T1042QDS (T1042 is T1040 Personality without L2 switch) supports following
> sgmii interfaces with serdes protocol 0xA7
> -SGMII-MAC3 on Lane B - slot 7
> -SGMII-MAC5 on Lane H - slot 7
> -SGMII2.5G-MAC1 on Lane C - slot 6
> -SGMII2.5G-MAC2 on Lane D - slot 5
>
> Add support of above sgmii interfaces
>
> Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
> ---
Applied to u-boot-mpc85xx, awaiting upstream.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-25 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-08 7:50 [U-Boot] [PATCH] board/t1040qds: Add sgmii ports support in 0xA7 protocol Priyanka Jain
2014-09-25 16:48 ` York Sun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox