Skip to content

Commit c2388cd

Browse files
dgarskedanielinux
authored andcommitted
Fix for NXP T1024 PHY address mapping. Add ability to override macros.
1 parent 3166b07 commit c2388cd

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

hal/nxp_t1024.c

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,12 +2558,24 @@ static int hal_phy_init(struct phy_device *phydev)
25582558
}
25592559

25602560

2561+
#ifndef RGMII_PHY1_ADDR
25612562
#define RGMII_PHY1_ADDR 0x4
2563+
#endif
2564+
#ifndef RGMII_PHY2_ADDR
25622565
#define RGMII_PHY2_ADDR 0x3
2563-
#define SGMII_PHY2_ADDR 0x1
2564-
#define SGMII_PHY1_ADDR 0x2
2566+
#endif
2567+
#ifndef SGMII_PHY2_ADDR
2568+
#define SGMII_PHY2_ADDR 0x2
2569+
#endif
2570+
#ifndef SGMII_PHY1_ADDR
2571+
#define SGMII_PHY1_ADDR 0x1
2572+
#endif
2573+
#ifndef SGMII_AQR_PHY_ADDR
25652574
#define SGMII_AQR_PHY_ADDR 0x2
2575+
#endif
2576+
#ifndef FM1_10GEC1_PHY_ADDR
25662577
#define FM1_10GEC1_PHY_ADDR 0x1
2578+
#endif
25672579

25682580
#define FM1_DTSEC1 0
25692581
#define FM1_DTSEC2 1

0 commit comments

Comments
 (0)