diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2023-02-20 14:50:26 +0900 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2023-02-22 19:40:11 +0100 |
commit | f7b7c721332c2e262035d306296d53c2511763a0 (patch) | |
tree | 8610d3de4001e9edcd8a58ae71e2efc0d8f2b480 /lib/tpm_api.c | |
parent | c6583354b7c1aaa9608b2f92221608e42c21f1dd (diff) |
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.
Suggested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'lib/tpm_api.c')
0 files changed, 0 insertions, 0 deletions