9 #include <linux/module.h>
18 static int octeon2_usb_clock_start_cnt;
28 unsigned long io_clk_64_to_ns;
33 octeon2_usb_clock_start_cnt++;
34 if (octeon2_usb_clock_start_cnt != 1)
56 if (clk_rst_ctl.
s.hrst)
59 clk_rst_ctl.
s.p_por = 1;
60 clk_rst_ctl.
s.hrst = 0;
61 clk_rst_ctl.
s.p_prst = 0;
62 clk_rst_ctl.
s.h_clkdiv_rst = 0;
63 clk_rst_ctl.
s.o_clkdiv_rst = 0;
64 clk_rst_ctl.
s.h_clkdiv_en = 0;
65 clk_rst_ctl.
s.o_clkdiv_en = 0;
70 clk_rst_ctl.
s.p_refclk_sel = 0;
71 clk_rst_ctl.
s.p_refclk_div = 0;
103 clk_rst_ctl.
s.h_div =
div;
107 clk_rst_ctl.
s.h_clkdiv_en = 1;
110 clk_rst_ctl.
s.h_clkdiv_rst = 1;
120 clk_rst_ctl.
s.p_por = 0;
131 uphy_ctl_status.
s.ate_reset = 1;
138 uphy_ctl_status.
s.ate_reset = 0;
149 clk_rst_ctl.
s.o_clkdiv_rst = 1;
153 clk_rst_ctl.
s.o_clkdiv_en = 1;
163 clk_rst_ctl.
s.p_prst = 1;
170 clk_rst_ctl.
s.hrst = 1;
176 for (i = 0; i <= 1; i++) {
177 port_ctl_status.
u64 =
180 port_ctl_status.
s.txvreftune = 15;
181 port_ctl_status.
s.txrisetune = 1;
182 port_ctl_status.
s.txpreemphasistune = 1;
184 port_ctl_status.
u64);
197 octeon2_usb_clock_start_cnt--;