]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: dwc3-generic: Restrict single ctrl node for RK3328
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 6 Jun 2023 17:09:14 +0000 (22:39 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 31 Jul 2023 12:33:18 +0000 (20:33 +0800)
Like Rockchip RK3568, the RK3328 also have single node to
represent the glue and ctrl for USB 3.0.

So, use the driver data to use single ctrl for RK3328 DWC3.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/usb/dwc3/dwc3-generic.c

index 79203f820415491aae0901c3e2b2fb635eed9144..b3ed728fd8487592a09147d3a3b031eb2daf9145 100644 (file)
@@ -607,7 +607,7 @@ static const struct udevice_id dwc3_glue_ids[] = {
        { .compatible = "ti,dwc3", .data = (ulong)&ti_ops },
        { .compatible = "ti,am437x-dwc3", .data = (ulong)&ti_ops },
        { .compatible = "ti,am654-dwc3" },
-       { .compatible = "rockchip,rk3328-dwc3" },
+       { .compatible = "rockchip,rk3328-dwc3", .data = (ulong)&rk_ops },
        { .compatible = "rockchip,rk3399-dwc3" },
        { .compatible = "rockchip,rk3568-dwc3", .data = (ulong)&rk_ops },
        { .compatible = "qcom,dwc3" },