mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
f7b7c72133
commit
7c71c684ce
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue