mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +00:00
phy: cadence: salvo: add bist fix
Very limited parts may fail to work on full speed mode (both host and device modes) for USB3 port due to higher threshold in full speed receiver of USB2.0 PHY. One example failure symptom is, the enumeration is failed when connecting full speed USB mouse to USB3 port, especially under high temperature. The workaround is to configure threshold voltage value of single ended receiver by setting USB2.0 PHY register AFE_RX_REG5[2:0] to 3'b101. Signed-off-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20230517161646.3418250-4-Frank.Li@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
1492498d13
commit
fe5516651e
@ -91,6 +91,7 @@
|
||||
|
||||
/* USB2 PHY register definition */
|
||||
#define UTMI_REG15 0xaf
|
||||
#define UTMI_AFE_RX_REG5 0x12
|
||||
|
||||
/* TB_ADDR_TX_RCVDETSC_CTRL */
|
||||
#define RXDET_IN_P3_32KHZ BIT(0)
|
||||
@ -247,6 +248,7 @@ static int cdns_salvo_phy_init(struct phy *phy)
|
||||
cdns_salvo_write(salvo_phy, USB2_PHY_OFFSET, UTMI_REG15,
|
||||
value | TXVALID_GATE_THRESHOLD_HS_0US);
|
||||
|
||||
cdns_salvo_write(salvo_phy, USB2_PHY_OFFSET, UTMI_AFE_RX_REG5, 0x5);
|
||||
udelay(10);
|
||||
|
||||
clk_disable_unprepare(salvo_phy->clk);
|
||||
|
Loading…
Reference in New Issue
Block a user