summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorWeiLu <w.lu@nxp.com>2022-08-04 17:21:06 +0800
committerPeng Fan <peng.fan@nxp.com>2022-08-04 18:31:26 +0800
commit06ed542b86cfdd38c55d0bbc299ddd027dc4492a (patch)
tree43bd5c525a975b000dcdce716e71e8ee71966abe /board
parentae62a9c9c054362a7caf1ecb31f5c768f1e39c06 (diff)
LFU-292: ls1021aiot: fix coverity issue of eTSEC
Diffstat (limited to 'board')
-rw-r--r--board/freescale/ls1021aiot/ls1021aiot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/freescale/ls1021aiot/ls1021aiot.c b/board/freescale/ls1021aiot/ls1021aiot.c
index bfe6137604..0d6a092e53 100644
--- a/board/freescale/ls1021aiot/ls1021aiot.c
+++ b/board/freescale/ls1021aiot/ls1021aiot.c
@@ -120,6 +120,7 @@ int board_eth_init(struct bd_info *bis)
if (is_serdes_configured(SGMII_TSEC1)) {
puts("eTSEC1 is in sgmii mode.\n");
tsec_info[num].flags |= TSEC_SGMII;
+ tsec_info[num].interface = PHY_INTERFACE_MODE_SGMII;
}
num++;
#endif
@@ -128,6 +129,7 @@ int board_eth_init(struct bd_info *bis)
if (is_serdes_configured(SGMII_TSEC2)) {
puts("eTSEC2 is in sgmii mode.\n");
tsec_info[num].flags |= TSEC_SGMII;
+ tsec_info[num].interface = PHY_INTERFACE_MODE_SGMII;
}
num++;
#endif