Skip to content

Commit

Permalink
Fix for NXP T1024 PHY address mapping. Add ability to override macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Feb 23, 2024
1 parent 11017d8 commit 79445e2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions hal/nxp_t1024.c
Original file line number Diff line number Diff line change
Expand Up @@ -2558,12 +2558,24 @@ static int hal_phy_init(struct phy_device *phydev)
}


#ifndef RGMII_PHY1_ADDR
#define RGMII_PHY1_ADDR 0x4
#endif
#ifndef RGMII_PHY2_ADDR
#define RGMII_PHY2_ADDR 0x3
#define SGMII_PHY2_ADDR 0x1
#define SGMII_PHY1_ADDR 0x2
#endif
#ifndef SGMII_PHY2_ADDR
#define SGMII_PHY2_ADDR 0x2
#endif
#ifndef SGMII_PHY1_ADDR
#define SGMII_PHY1_ADDR 0x1
#endif
#ifndef SGMII_AQR_PHY_ADDR
#define SGMII_AQR_PHY_ADDR 0x2
#endif
#ifndef FM1_10GEC1_PHY_ADDR
#define FM1_10GEC1_PHY_ADDR 0x1
#endif

#define FM1_DTSEC1 0
#define FM1_DTSEC2 1
Expand Down

0 comments on commit 79445e2

Please sign in to comment.