[PATCH v4 4/5] usb: dwc3-generic: Add rk3568 support

Marek Vasut marex at denx.de
Fri Jul 28 16:02:27 CEST 2023


On 7/28/23 14:40, Jonas Karlman wrote:
> RK3568 share glue and ctrl in a single node. Use glue_get_ctrl_dev to
> return the glue node as the ctrl node.
> 
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
> Reviewed-by: Jagan Teki <jagan at amarulasolutions.com>
> ---
> v4:
> - No change
> v3:
> - No change
> v2:
> - No change
> - Collect r-b tag
> 
>   drivers/usb/dwc3/dwc3-generic.c | 17 +++++++++++++++++
>   1 file changed, 17 insertions(+)
> 
> diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c
> index 2331ac453132..f6d087722c9f 100644
> --- a/drivers/usb/dwc3/dwc3-generic.c
> +++ b/drivers/usb/dwc3/dwc3-generic.c
> @@ -405,6 +405,22 @@ struct dwc3_glue_ops ti_ops = {
>   	.glue_configure = dwc3_ti_glue_configure,
>   };
>   
> +static int dwc3_rk_glue_get_ctrl_dev(struct udevice *dev, ofnode *node)
> +{
> +	if (!device_is_compatible(dev, "snps,dwc3"))
> +		return -EINVAL;

Can this ever happen ?


More information about the U-Boot mailing list