Lines Matching refs:clk_rst_ctl

33 	union cvmx_uctlx_clk_rst_ctl clk_rst_ctl;  in octeon2_usb_reset()  local
39 clk_rst_ctl.u64 = cvmx_read_csr(CVMX_UCTLX_CLK_RST_CTL(0)); in octeon2_usb_reset()
40 if (clk_rst_ctl.s.hrst) { in octeon2_usb_reset()
60 union cvmx_uctlx_clk_rst_ctl clk_rst_ctl; in octeon2_usb_clocks_start() local
121 clk_rst_ctl.u64 = cvmx_read_csr(CVMX_UCTLX_CLK_RST_CTL(0)); in octeon2_usb_clocks_start()
127 if (clk_rst_ctl.s.hrst) in octeon2_usb_clocks_start()
130 clk_rst_ctl.s.p_por = 1; in octeon2_usb_clocks_start()
131 clk_rst_ctl.s.hrst = 0; in octeon2_usb_clocks_start()
132 clk_rst_ctl.s.p_prst = 0; in octeon2_usb_clocks_start()
133 clk_rst_ctl.s.h_clkdiv_rst = 0; in octeon2_usb_clocks_start()
134 clk_rst_ctl.s.o_clkdiv_rst = 0; in octeon2_usb_clocks_start()
135 clk_rst_ctl.s.h_clkdiv_en = 0; in octeon2_usb_clocks_start()
136 clk_rst_ctl.s.o_clkdiv_en = 0; in octeon2_usb_clocks_start()
137 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
140 clk_rst_ctl.s.p_refclk_sel = is_crystal_clock ? 0 : 1; in octeon2_usb_clocks_start()
147 clk_rst_ctl.s.p_refclk_div = 0; in octeon2_usb_clocks_start()
150 clk_rst_ctl.s.p_refclk_div = 1; in octeon2_usb_clocks_start()
153 clk_rst_ctl.s.p_refclk_div = 2; in octeon2_usb_clocks_start()
156 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
187 clk_rst_ctl.s.h_div = div; in octeon2_usb_clocks_start()
188 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
190 clk_rst_ctl.u64 = cvmx_read_csr(CVMX_UCTLX_CLK_RST_CTL(0)); in octeon2_usb_clocks_start()
191 clk_rst_ctl.s.h_clkdiv_en = 1; in octeon2_usb_clocks_start()
192 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
194 clk_rst_ctl.s.h_clkdiv_rst = 1; in octeon2_usb_clocks_start()
195 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
204 clk_rst_ctl.s.p_por = 0; in octeon2_usb_clocks_start()
205 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
214 clk_rst_ctl.s.o_clkdiv_rst = 1; in octeon2_usb_clocks_start()
215 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
218 clk_rst_ctl.s.o_clkdiv_en = 1; in octeon2_usb_clocks_start()
219 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
228 clk_rst_ctl.s.p_prst = 1; in octeon2_usb_clocks_start()
229 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
235 clk_rst_ctl.s.p_prst = 0; in octeon2_usb_clocks_start()
236 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
242 clk_rst_ctl.s.p_prst = 1; in octeon2_usb_clocks_start()
243 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()
249 clk_rst_ctl.s.hrst = 1; in octeon2_usb_clocks_start()
250 cvmx_write_csr(CVMX_UCTLX_CLK_RST_CTL(0), clk_rst_ctl.u64); in octeon2_usb_clocks_start()