summaryrefslogtreecommitdiff
path: root/drivers/net/ldpaa_eth/lx2160a.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-03-15 11:58:17 -0400
committerTom Rini <trini@konsulko.com>2019-03-15 11:58:17 -0400
commit8303467e80d7059158bf906af58ab8911ca46e44 (patch)
tree6617e101598bacc5686c22f2f0df440052124aa7 /drivers/net/ldpaa_eth/lx2160a.c
parent821aa1916ecc5116a6f80bcb8a73e70af5b99f4b (diff)
parent158097052a6a528408e05d2345ff2ccdbb46036e (diff)
Merge git://git.denx.de/u-boot-fsl-qoriq
- DPAA2 fixes and DDR errata workaround for LS1021A
Diffstat (limited to 'drivers/net/ldpaa_eth/lx2160a.c')
-rw-r--r--drivers/net/ldpaa_eth/lx2160a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ldpaa_eth/lx2160a.c b/drivers/net/ldpaa_eth/lx2160a.c
index 7dd46c04f6..1fbeb0d14b 100644
--- a/drivers/net/ldpaa_eth/lx2160a.c
+++ b/drivers/net/ldpaa_eth/lx2160a.c
@@ -91,7 +91,7 @@ void fsl_rgmii_init(void)
& FSL_CHASSIS3_EC1_REGSR_PRTCL_MASK;
ec >>= FSL_CHASSIS3_EC1_REGSR_PRTCL_SHIFT;
- if (!ec)
+ if (!ec && (wriop_is_enabled_dpmac(17) == -ENODEV))
wriop_init_dpmac_enet_if(17, PHY_INTERFACE_MODE_RGMII_ID);
#endif
@@ -100,7 +100,7 @@ void fsl_rgmii_init(void)
& FSL_CHASSIS3_EC2_REGSR_PRTCL_MASK;
ec >>= FSL_CHASSIS3_EC2_REGSR_PRTCL_SHIFT;
- if (!ec)
+ if (!ec && (wriop_is_enabled_dpmac(18) == -ENODEV))
wriop_init_dpmac_enet_if(18, PHY_INTERFACE_MODE_RGMII_ID);
#endif
}