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/usb/dwc3 | |
parent | f7b7c721332c2e262035d306296d53c2511763a0 (diff) | |
download | u-boot-7c71c684ce697dcb79efb7f027d820a6ab82228b.tar.gz u-boot-7c71c684ce697dcb79efb7f027d820a6ab82228b.tar.bz2 u-boot-7c71c684ce697dcb79efb7f027d820a6ab82228b.zip |
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/usb/dwc3')
-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 e32003d68e..8fa56e1ac1 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) |