net: phy: nxp-c45-tja11xx: use local definion of features
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>
diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c
index f701790..38fb38b 100644
--- a/drivers/net/phy/nxp-c45-tja11xx.c
+++ b/drivers/net/phy/nxp-c45-tja11xx.c
@@ -330,11 +330,14 @@
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,
diff --git a/include/phy.h b/include/phy.h
index 27effdb..e02cbdb 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -51,10 +51,6 @@
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)