diff options
| author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2023-02-20 14:50:27 +0900 |
|---|---|---|
| committer | Marek Vasut <marex@denx.de> | 2023-02-22 19:40:11 +0100 |
| commit | 7c71c684ce697dcb79efb7f027d820a6ab82228b (patch) | |
| tree | 4a1f4bb1931cd76fbc550667001f2e9830091662 /drivers | |
| parent | f7b7c721332c2e262035d306296d53c2511763a0 (diff) | |
usb: dwc3-generic: Add clock initialization in child DT node
Same as the reset cotnrol, should add a clock initialization in child DT
node, if the glue node doesn't have any clocks.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/dwc3/dwc3-generic.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index e32003d68e0..8fa56e1ac17 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -572,6 +572,12 @@ static int dwc3_glue_probe(struct udevice *dev) if (ret) return ret; + if (glue->clks.count == 0) { + ret = dwc3_glue_clk_init(child, glue); + if (ret) + return ret; + } + if (glue->resets.count == 0) { ret = dwc3_glue_reset_init(child, glue); if (ret) |
