usb: cdns: starfive: Get dr mode from wrapper device dts node
Cdns core driver also get dr mode from wrapper devcie dts node to make it is same with Starfive cdns USB Linux kernel driver, Starfive 7110 OF_UPSTREAM is enabled Signed-off-by: Minda Chen <minda.chen@starfivetech.com> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
@@ -410,6 +410,9 @@ int cdns3_bind(struct udevice *parent)
|
||||
name = ofnode_get_name(node);
|
||||
dr_mode = usb_get_dr_mode(node);
|
||||
|
||||
if (dr_mode == USB_DR_MODE_UNKNOWN)
|
||||
dr_mode = usb_get_dr_mode(dev_ofnode(parent));
|
||||
|
||||
switch (dr_mode) {
|
||||
#if defined(CONFIG_SPL_USB_HOST) || \
|
||||
(!defined(CONFIG_XPL_BUILD) && defined(CONFIG_USB_HOST))
|
||||
|
Reference in New Issue
Block a user