@@ -7,8 +7,8 @@ Signed-off-by: Marvin Wewer <mwewer37@proton.me>
77---
88 drivers/phy/allwinner/Kconfig | 8 +
99 drivers/phy/allwinner/Makefile | 1 +
10- drivers/phy/allwinner/phy-sun55i-pcie-usb3.c | 661 ++++++++++
11- 3 files changed, 670 insertions(+)
10+ drivers/phy/allwinner/phy-sun55i-pcie-usb3.c | 656 ++++++++++
11+ 3 files changed, 665 insertions(+)
1212
1313diff --git a/drivers/phy/allwinner/Kconfig b/drivers/phy/allwinner/Kconfig
1414index 111111111111..222222222222 100644
@@ -41,7 +41,7 @@ new file mode 100644
4141index 000000000000..111111111111
4242--- /dev/null
4343+++ b/drivers/phy/allwinner/phy-sun55i-pcie-usb3.c
44- @@ -0,0 +1,661 @@
44+ @@ -0,0 +1,656 @@
4545+ // SPDX-License-Identifier: GPL-2.0
4646+ /*
4747+ * Allwinner PIPE USB3.0 PCIE Combo Phy driver
@@ -78,9 +78,6 @@ index 000000000000..111111111111
7878+ /* Sub-System Version Reset Register */
7979+ #define PCIE_USB3_SYS_VER 0x00
8080+
81- + /* PHY CLK Gating Control Register */
82- + #define PCIE_REF_CLK_GATING 31
83- +
8481+ /* CCMU Base Address */
8582+ #define SUNXI_CCMU_BASE 0x02001000
8683+ #define SUNXI_CCM_BASE (SUNXI_CCMU_BASE)
@@ -595,9 +592,7 @@ index 000000000000..111111111111
595592+ reg_value |= (1 << PCIE_BRG_REG_RST);
596593+ writel(reg_value, PCIE_BGR_REG);
597594+
598- + reg_value = readl(0x2001a84);
599- + reg_value |= (1 << PCIE_REF_CLK_GATING);
600- + //reg_value = 0x81000001;
595+ + reg_value = 0x81000001;
601596+ writel(reg_value, 0x2001a84);
602597+
603598+ pcie_usb3_sub_system_enable(combphy);
0 commit comments