Skip to content

Commit b15ee09

Browse files
Xu Yangvinodkoul
authored andcommitted
phy: fsl-imx8mq-usb: fix phy_tx_vboost_level_from_property()
The description of TX_VBOOST_LVL is wrong in register PHY_CTRL3 bit[31:29]. The updated description as below: 011: Corresponds to a launch amplitude of 0.844 V. 100: Corresponds to a launch amplitude of 1.008 V. 101: Corresponds to a launch amplitude of 1.156 V. This will fix the parsing function phy_tx_vboost_level_from_property() to return correct value. Fixes: 63c85ad ("phy: fsl-imx8mp-usb: add support for phy tuning") Cc: [email protected] Reviewed-by: Jun Li <[email protected]> Signed-off-by: Xu Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 7325e09 commit b15ee09

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/phy/freescale/phy-fsl-imx8mq-usb.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ static u32 phy_tx_preemp_amp_tune_from_property(u32 microamp)
317317
static u32 phy_tx_vboost_level_from_property(u32 microvolt)
318318
{
319319
switch (microvolt) {
320-
case 0 ... 960:
321-
return 0;
322-
case 961 ... 1160:
323-
return 2;
324-
default:
320+
case 1156:
321+
return 5;
322+
case 844:
325323
return 3;
324+
default:
325+
return 4;
326326
}
327327
}
328328

0 commit comments

Comments
 (0)