Home
last modified time | relevance | path

Searched hist:"3 a6b463ba0b1138eb913eb9b56d1f518e035a30a" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/dwc3/
H A Ddwc3-generic.c3a6b463ba0b1138eb913eb9b56d1f518e035a30a Mon Feb 20 05:50:26 UTC 2023 Kunihiko Hayashi <hayashi.kunihiko@socionext.com> UPSTREAM: usb: dwc3-generic: Allow different controller DT node pattern

The most of devicetree has the following USB node structure.
The controller node is placed as a child node of the glue node.
Current dwc3-generic driver works on this premise.

glue {
/* glue node */
usb {
/* controller node */
};
};

However, UniPhier original devicetree has the following USB node structure.
The controller node is separately placed from the glue node.

usb {
/* controller node */
};
glue {
/* glue node */
};

In dwc_glue_bind(), this patch provides .glue_get_ctrl_dev() callback to
get such a controller node and binds the driver related to the node.

If this callback isn't defined, dwc_glue_bind() looks for the controller
nodes from the child nodes, as before.

Change-Id: I49d00bf54cbe7d48a09fb3f24bfee0bee7a04a8f
Suggested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit f7b7c721332c2e262035d306296d53c2511763a0)