aboutsummaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorIgal Liberman <igall@marvell.com>2017-04-26 17:20:47 +0300
committerStefan Roese <sr@denx.de>2021-04-29 07:45:24 +0200
commit89351ba4c8afae71314228003dcb0fbba809d372 (patch)
tree6e7dae71d8fab680ee92688a4e8449a0f99545c7 /drivers/phy
parent2dbba24088b8ef06aabee5df17ff7105ff259aca (diff)
downloadu-boot-89351ba4c8afae71314228003dcb0fbba809d372.zip
u-boot-89351ba4c8afae71314228003dcb0fbba809d372.tar.gz
u-boot-89351ba4c8afae71314228003dcb0fbba809d372.tar.bz2
phy: marvell: add missing speed during info prints
In get_speed_string() we have an array (speed_strings[]) which includes all possible speed strings. This array size and content must be aligned to the speed defines in comphy_data.h. This patch adds missing 5.125G speed, aligns speed_strings[] and fixes incorrect printing when speed > 5.0G. Change-Id: I9900d23595094be321be0c62fcaa88036324568e Signed-off-by: Igal Liberman <igall@marvell.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/marvell/comphy_core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c
index f1f061d..835fc2e 100644
--- a/drivers/phy/marvell/comphy_core.c
+++ b/drivers/phy/marvell/comphy_core.c
@@ -25,8 +25,9 @@ static const char *get_speed_string(u32 speed)
{
static const char * const speed_strings[] = {
"1.25 Gbps", "1.5 Gbps", "2.5 Gbps",
- "3.0 Gbps", "3.125 Gbps", "5 Gbps", "6 Gbps",
- "6.25 Gbps", "10.31 Gbps"
+ "3.0 Gbps", "3.125 Gbps", "5 Gbps",
+ "5.125 Gpbs", "6 Gbps", "6.25 Gbps",
+ "10.3125 Gbps"
};
if (speed < 0 || speed > COMPHY_SPEED_MAX)