]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: phy: nxp-c45-tja11xx: use local definion of features
authorRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Wed, 13 Dec 2023 16:14:20 +0000 (18:14 +0200)
committerPeng Fan <peng.fan@nxp.com>
Thu, 8 Feb 2024 02:41:23 +0000 (10:41 +0800)
Use a local definition for the PHY features. PHY_100BT1_FEATURES are
not defined using the 100BaseT1 bit, so keep this workaround in the driver.

Signed-off-by: "Radu Pirea (NXP OSS)" <radu-nicolae.pirea@oss.nxp.com>
drivers/net/phy/nxp-c45-tja11xx.c
include/phy.h

index f701790194cb27eba95157e247c4f21205c1de32..38fb38b9fb4dfa8374eacae10321b279cf742bcd 100644 (file)
@@ -330,11 +330,14 @@ static int nxp_c45_probe(struct phy_device *phydev)
        return 0;
 }
 
+#define NXP_C45_COMMON_FEATURES        (SUPPORTED_TP | \
+       SUPPORTED_MII)
+
 U_BOOT_PHY_DRIVER(nxp_c45_tja11xx) = {
        .name = "NXP C45 TJA1103",
        .uid  = PHY_ID_TJA_1103,
        .mask = 0xfffff0,
-       .features = PHY_100BT1_FEATURES,
+       .features = NXP_C45_COMMON_FEATURES | SUPPORTED_100baseT_Full,
        .probe = &nxp_c45_probe,
        .config = &nxp_c45_config,
        .startup = &nxp_c45_startup,
index 27effdb57633af979e91b6d9fb2e83b14957d277..e02cbdb58c9ec527d802a47c0fb13ee83c7eaba2 100644 (file)
@@ -51,10 +51,6 @@ struct udevice;
                                 PHY_100BT_FEATURES | \
                                 PHY_DEFAULT_FEATURES)
 
-#define PHY_100BT1_FEATURES    (SUPPORTED_TP | \
-                                SUPPORTED_MII | \
-                                SUPPORTED_100baseT_Full)
-
 #define PHY_GBIT_FEATURES      (PHY_BASIC_FEATURES | \
                                 PHY_1000BT_FEATURES)