1
0
Fork 0

MLK-19442-2 phy: phy-fsl-imx8mq-usb: change ssc_range value

According to IC engineer suggestion, set ssc_range as -4003 ppm
will have more tolerence for EMI, and suitable for more boards.
Besides, one customer board needs to set this value to pass TX
SSC test.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
pull/10/head
Peter Chen 2018-08-22 16:44:21 +08:00 committed by Jason Liu
parent 2ea5977610
commit a48a65a401
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@
#define PHY_CTRL0 0x0
#define PHY_CTRL0_REF_SSP_EN BIT(2)
#define PHY_CTRL0_SSC_RANGE_MASK (7 << 21)
#define PHY_CTRL0_SSC_RANGE_4003PPM (0x2 << 21)
#define PHY_CTRL1 0x4
#define PHY_CTRL1_RESET BIT(0)
@ -66,6 +68,8 @@ static void imx8mq_usb_phy_init(struct imx8mq_usb_phy *phy)
value = readl(phy->base + PHY_CTRL0);
value |= PHY_CTRL0_REF_SSP_EN;
value &= ~PHY_CTRL0_SSC_RANGE_MASK;
value |= PHY_CTRL0_SSC_RANGE_4003PPM;
writel(value, phy->base + PHY_CTRL0);
value = readl(phy->base + PHY_CTRL2);