From 60e92c4bf274a823c5ce4aa55de65289eec54603 Mon Sep 17 00:00:00 2001 From: Frank Wang Date: Fri, 14 Jun 2024 14:11:34 +0800 Subject: [PATCH] phy: rockchip: usbdp: amend ssc modulation deviation Move SSC modulation deviation into private config of clock. - 24M: 0x00D4[5:0] = 0x30 - 26M: 0x00D4[5:0] = 0x33 Signed-off-by: Frank Wang Change-Id: I6bd1e4352f85a6e12630cc4034fac49a9749627c --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index 3d448cb3d2d0..39589e14c008 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -336,7 +336,8 @@ static const struct reg_sequence udphy_24m_refclk_cfg[] = { {0x0a64, 0xa8}, {0x1a3c, 0xd0}, {0x1a44, 0xd0}, {0x1a48, 0x01}, {0x1a4c, 0x0d}, {0x1a54, 0xe0}, - {0x1a5c, 0xe0}, {0x1a64, 0xa8} + {0x1a5c, 0xe0}, {0x1a64, 0xa8}, + {0x00D4, 0x30} }; static const struct reg_sequence udphy_26m_refclk_cfg[] = { @@ -363,7 +364,7 @@ static const struct reg_sequence udphy_26m_refclk_cfg[] = { {0x0c30, 0x0E}, {0x0C48, 0x06}, {0x1C30, 0x0E}, {0x1C48, 0x06}, {0x028C, 0x18}, {0x0AF0, 0x00}, - {0x1AF0, 0x00} + {0x1AF0, 0x00}, {0x00D4, 0x33} }; static const struct reg_sequence udphy_init_sequence[] = { @@ -398,8 +399,7 @@ static const struct reg_sequence udphy_init_sequence[] = { {0x0070, 0x7D}, {0x0074, 0x68}, {0x0AF4, 0x1A}, {0x1AF4, 0x1A}, {0x0440, 0x3F}, {0x10D4, 0x08}, - {0x20D4, 0x08}, {0x00D4, 0x30}, - {0x0024, 0x6e}, + {0x20D4, 0x08}, {0x0024, 0x6e} }; static inline int grfreg_write(struct regmap *base,