aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorIgal Liberman <igall@marvell.com>2017-04-26 15:40:00 +0300
committerStefan Roese <sr@denx.de>2021-04-29 07:45:24 +0200
commit2dbba24088b8ef06aabee5df17ff7105ff259aca (patch)
tree849d494fb675e5deacff8d284fcb02c600bd2861 /board
parent4568e2041c9fb6288f841bfb63474aecc1560af9 (diff)
downloadu-boot-2dbba24088b8ef06aabee5df17ff7105ff259aca.zip
u-boot-2dbba24088b8ef06aabee5df17ff7105ff259aca.tar.gz
u-boot-2dbba24088b8ef06aabee5df17ff7105ff259aca.tar.bz2
phy: marvell: rename comphy related definitions to COMPHY_XX
Currently, all comphy definitions are PHY_TYPE_XX and PHY_SPEEED_XX. Those definition might be confused with MDIO PHY definitions. This patch does the following changes: - PHY_TYPE_XX --> COMPHY_TYPE_XX - PHY_SPEED_XX --> COMPHY_SPEED_XX This improves readability, no functional change. Change-Id: I2bd1d9289ebbc5c16fa80f9870f797ea1bcaf5fa Signed-off-by: Igal Liberman <igall@marvell.com> Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Diffstat (limited to 'board')
-rw-r--r--board/CZ.NIC/turris_mox/turris_mox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c b/board/CZ.NIC/turris_mox/turris_mox.c
index 486680a..15cbf92 100644
--- a/board/CZ.NIC/turris_mox/turris_mox.c
+++ b/board/CZ.NIC/turris_mox/turris_mox.c
@@ -216,13 +216,13 @@ int comphy_update_map(struct comphy_map *serdes_map, int count)
if (sfpindex >= 0 && swindex >= 0) {
if (sfpindex < swindex)
- serdes_map[0].speed = PHY_SPEED_1_25G;
+ serdes_map[0].speed = COMPHY_SPEED_1_25G;
else
- serdes_map[0].speed = PHY_SPEED_3_125G;
+ serdes_map[0].speed = COMPHY_SPEED_3_125G;
} else if (sfpindex >= 0) {
- serdes_map[0].speed = PHY_SPEED_1_25G;
+ serdes_map[0].speed = COMPHY_SPEED_1_25G;
} else if (swindex >= 0) {
- serdes_map[0].speed = PHY_SPEED_3_125G;
+ serdes_map[0].speed = COMPHY_SPEED_3_125G;
}
return 0;