summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin <cm2.shin@samsung.com>2024-02-02 19:34:06 +0900
committerPetri Gynther <pgynther@google.com>2024-02-16 18:51:26 -0800
commitcfccd74d97659bbc625775dadf73b45001edc9b3 (patch)
tree24c658cec962f203bb3165c1852e340cd79f8975
parente02a0548ec8d294ec19a25dcd09e9d5fe0701164 (diff)
downloadgs-cfccd74d97659bbc625775dadf73b45001edc9b3.tar.gz
usb: phy: fix LFPS Rx sensitivity
Bug: 308680806 Bug: 324004648 Signed-off-by: Shin <cm2.shin@samsung.com> Change-Id: I0be0ec68b7f9ca80ebcac366d7cc2a2c6c7fc2fa
-rw-r--r--drivers/phy/samsung/phy-exynos-snps-usbdp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/phy/samsung/phy-exynos-snps-usbdp.c b/drivers/phy/samsung/phy-exynos-snps-usbdp.c
index 937526e2f..94adeea68 100644
--- a/drivers/phy/samsung/phy-exynos-snps-usbdp.c
+++ b/drivers/phy/samsung/phy-exynos-snps-usbdp.c
@@ -812,6 +812,11 @@ static int additional_cr_reg_update(struct exynos_usbphy_info *info)
return -1;
}
+ /* LFPS threshold control */
+ cr_reg = phy_exynos_snps_usbdp_cr_read(info, CRREG_LANE_RX(0x10f0));
+ cr_reg &= ~(1 << 3);
+ phy_exynos_snps_usbdp_cr_write(info, CRREG_LANE_RX(0x10f0), cr_reg);
+
cr_reg = phy_exynos_snps_usbdp_cr_read(info, 0x003D);
pr_debug("PMA version:%#04x\n", cr_reg);