diff options
author | Radu Pirea (NXP OSS) | 2023-12-13 18:14:23 +0200 |
---|---|---|
committer | Peng Fan | 2024-02-08 10:41:24 +0800 |
commit | 55fc0cbbd6c973849371bb21b45981ad26847a4b (patch) | |
tree | 5bc8d3e31d2dbd959cc2b73fc35616fe4ed51c9a | |
parent | 7e02c3accb464871bcdd11597b1afc72c3b46593 (diff) |
net: phy: nxp-c45-tja11xx: add tja1120 support
Add TJA1120 driver structure and report 1G speed.
Signed-off-by: "Radu Pirea (NXP OSS)" <radu-nicolae.pirea@oss.nxp.com>
-rw-r--r-- | drivers/net/phy/nxp-c45-tja11xx.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c index e787f5fbb93..f24fc5b2de6 100644 --- a/drivers/net/phy/nxp-c45-tja11xx.c +++ b/drivers/net/phy/nxp-c45-tja11xx.c @@ -14,6 +14,7 @@ #include <phy.h> #define PHY_ID_TJA_1103 0x001BB010 +#define PHY_ID_TJA_1120 0x001BB031 #define VEND1_DEVICE_CONTROL 0x0040 #define DEVICE_CONTROL_RESET BIT(15) @@ -316,6 +317,8 @@ static int nxp_c45_speed(struct phy_device *phydev) if (val & MDIO_PMA_CTRL1_SPEED100) phydev->speed = SPEED_100; + else if (val & MDIO_PMA_CTRL1_SPEED1000) + phydev->speed = SPEED_1000; else phydev->speed = 0; @@ -363,3 +366,14 @@ U_BOOT_PHY_DRIVER(nxp_c45_tja1103) = { .startup = &nxp_c45_startup, .shutdown = &genphy_shutdown, }; + +U_BOOT_PHY_DRIVER(nxp_c45_tja1120) = { + .name = "NXP C45 TJA1120", + .uid = PHY_ID_TJA_1120, + .mask = 0xfffff0, + .features = NXP_C45_COMMON_FEATURES | SUPPORTED_1000baseT_Full, + .probe = &nxp_c45_probe, + .config = &nxp_c45_config, + .startup = &nxp_c45_startup, + .shutdown = &genphy_shutdown, +}; |