mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
usb: ehci-mx6: Do not fail when 'reg' is not found
Unlike imx6, on imx7 the USB PHY is described as: usbphynop1: usbphynop1 { compatible = "usb-nop-xceiv"; clocks = <&clks IMX7D_USB_PHY1_CLK>; clock-names = "main_clk"; #phy-cells = <0>; }; which does not have the 'reg' property. Do not return an error when the 'reg' property is not found for the USB PHY. This fixes USB gadget regression on a imx7s-warp board. Successfully tested the "ums 0 mmc 0" command on two boards: imx7s-warp and imx6dl-pico-pi. Signed-off-by: Fabio Estevam <festevam@denx.de>
This commit is contained in:
parent
ec326b9325
commit
4822114f4f
@ -583,7 +583,7 @@ static int mx6_parse_dt_addrs(struct udevice *dev)
|
|||||||
|
|
||||||
addr = (void __iomem *)fdtdec_get_addr(blob, phy_off, "reg");
|
addr = (void __iomem *)fdtdec_get_addr(blob, phy_off, "reg");
|
||||||
if ((fdt_addr_t)addr == FDT_ADDR_T_NONE)
|
if ((fdt_addr_t)addr == FDT_ADDR_T_NONE)
|
||||||
return -EINVAL;
|
addr = NULL;
|
||||||
|
|
||||||
priv->phy_addr = addr;
|
priv->phy_addr = addr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user