Lines Matching +full:no +full:- +full:spread +full:- +full:spectrum

4  * Copyright (C) 2010-2017 Cavium Networks
37 /* 1 = Spread-spectrum clock enable, 0 = SS clock disable */
39 /* Spread-spectrum clock modulation range:
40 * 0x0 = -4980 ppm downspread
41 * 0x1 = -4492 ppm downspread
42 * 0x2 = -4003 ppm downspread
43 * 0x3 - 0x7 = Reserved
46 /* Enable non-standard oscillator frequencies:
47 * [55:53] = modules -1
51 /* Reference clock multiplier for non-standard frequencies:
101 /* USB3 port permanently attached: 0x0 = No, 0x1 = Yes */
103 /* USB2 port permanently attached: 0x0 = No, 0x1 = Yes */
107 /* Disable SuperSpeed PHY: 0x0 = No, 0x1 = Yes */
111 /* Disable HighSpeed PHY: 0x0 = No, 0x1 = Yes */
115 /* Enable PHY SuperSpeed block power: 0x0 = No, 0x1 = Yes */
119 /* Enable PHY HighSpeed block power: 0x0 = No, 0x1 = Yes */
123 /* Enable USB UCTL interface clock: 0xx = No, 0x1 = Yes */
151 /* Bus-master enable: 0x0 = Disabled (stall DMAs), 0x1 = enabled */
156 * 0x0 = Overcurrent indication from off-chip is active-low
157 * 0x1 = Overcurrent indication from off-chip is active-high
163 * 0x0 = Port power to off-chip is active-low
164 * 0x1 = Port power to off-chip is active-high
177 /* Out-of-bound UAHC register access: 0 = read, 1 = write */
181 /* SRCID error log for out-of-bound UAHC register access:
183 * [57] = Request source: 0 = core, 1 = NCB-device
184 * [56:51] = Core/NCB-device number, [56] always 0 for NCB devices
235 struct device_node *node = dev->of_node; in dwc3_octeon_config_power()
249 return -EINVAL; in dwc3_octeon_config_power()
297 if (dev->of_node) { in dwc3_octeon_clocks_start()
301 i = of_property_read_u32(dev->of_node, in dwc3_octeon_clocks_start()
302 "refclk-frequency", &clock_rate); in dwc3_octeon_clocks_start()
304 pr_err("No UCTL \"refclk-frequency\"\n"); in dwc3_octeon_clocks_start()
305 return -EINVAL; in dwc3_octeon_clocks_start()
307 i = of_property_read_string(dev->of_node, in dwc3_octeon_clocks_start()
308 "refclk-type-ss", &ss_clock_type); in dwc3_octeon_clocks_start()
310 pr_err("No UCTL \"refclk-type-ss\"\n"); in dwc3_octeon_clocks_start()
311 return -EINVAL; in dwc3_octeon_clocks_start()
313 i = of_property_read_string(dev->of_node, in dwc3_octeon_clocks_start()
314 "refclk-type-hs", &hs_clock_type); in dwc3_octeon_clocks_start()
316 pr_err("No UCTL \"refclk-type-hs\"\n"); in dwc3_octeon_clocks_start()
317 return -EINVAL; in dwc3_octeon_clocks_start()
347 pr_err("No USB UCTL device node\n"); in dwc3_octeon_clocks_start()
348 return -EINVAL; in dwc3_octeon_clocks_start()
384 return -EINVAL; in dwc3_octeon_clocks_start()
416 /* Step 5b: Configure and enable spread-spectrum for SuperSpeed. */ in dwc3_octeon_clocks_start()
429 /* Step 7: Wait 10 controller-clock cycles to take effect. */ in dwc3_octeon_clocks_start()
437 /* Step 8b: Wait 10 controller-clock cycles. */ in dwc3_octeon_clocks_start()
440 /* Steo 8c: Setup power-power control. */ in dwc3_octeon_clocks_start()
443 return -EINVAL; in dwc3_octeon_clocks_start()
451 /* Step 8e: Wait 10 controller-clock cycles. */ in dwc3_octeon_clocks_start()
498 const char compat_node_name[] = "cavium,octeon-7130-usb-uctl"; in dwc3_octeon_device_init()
512 return -ENODEV; in dwc3_octeon_device_init()
517 return -ENODEV; in dwc3_octeon_device_init()
521 put_device(&pdev->dev); in dwc3_octeon_device_init()
522 dev_err(&pdev->dev, "No memory resources\n"); in dwc3_octeon_device_init()
523 return -ENXIO; in dwc3_octeon_device_init()
532 base = devm_ioremap_resource(&pdev->dev, res); in dwc3_octeon_device_init()
534 put_device(&pdev->dev); in dwc3_octeon_device_init()
539 dwc3_octeon_clocks_start(&pdev->dev, (u64)base); in dwc3_octeon_device_init()
542 dev_info(&pdev->dev, "clocks initialized.\n"); in dwc3_octeon_device_init()
544 devm_iounmap(&pdev->dev, base); in dwc3_octeon_device_init()
545 devm_release_mem_region(&pdev->dev, res->start, in dwc3_octeon_device_init()