aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/usb/dwc3/core.h
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-01-27 15:06:31 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-08 11:42:22 +0100
commit33fb697ec7e58c4f9b6a68d2786441189cd2df92 (patch)
treeafca97bafb1ea1645f4f87930282973c8fe61f19 /drivers/usb/dwc3/core.h
parentdt-bindings: usb: dwc3: Deprecate snps,ref-clock-period-ns (diff)
downloadwireguard-linux-33fb697ec7e58c4f9b6a68d2786441189cd2df92.tar.xz
wireguard-linux-33fb697ec7e58c4f9b6a68d2786441189cd2df92.zip
usb: dwc3: Get clocks individually
Instead of grabbing all clocks in bulk, grab them individually. This will allow us to get the frequency or otherwise deal with discrete clocks. This may break some platforms if they use a clock which doesn't use one of the documented names. Reviewed-by: Robert Hancock <robert.hancock@calian.com> Signed-off-by: Sean Anderson <sean.anderson@seco.com> Link: https://lore.kernel.org/r/20220127200636.1456175-3-sean.anderson@seco.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/core.h')
-rw-r--r--drivers/usb/dwc3/core.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index e1cc3f7398fb..45cfa7d9f27a 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -978,8 +978,9 @@ struct dwc3_scratchpad_array {
* @eps: endpoint array
* @gadget: device side representation of the peripheral controller
* @gadget_driver: pointer to the gadget driver
- * @clks: array of clocks
- * @num_clks: number of clocks
+ * @bus_clk: clock for accessing the registers
+ * @ref_clk: reference clock
+ * @susp_clk: clock used when the SS phy is in low power (S3) state
* @reset: reset control
* @regs: base address for our registers
* @regs_size: address space size
@@ -1134,8 +1135,9 @@ struct dwc3 {
struct usb_gadget *gadget;
struct usb_gadget_driver *gadget_driver;
- struct clk_bulk_data *clks;
- int num_clks;
+ struct clk *bus_clk;
+ struct clk *ref_clk;
+ struct clk *susp_clk;
struct reset_control *reset;