]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: dwc3: Read phy suspend quirk from DT
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Mon, 22 Apr 2019 09:15:02 +0000 (14:45 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Jun 2019 10:44:49 +0000 (12:44 +0200)
This patch reads the suspend phy quirk from DT property
"snps,dis_u2_susphy_quirk" and update in dwc3 structure.
This suspend phy quirk will disable suspend functionality
of phy.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/usb/dwc3/dwc3-generic.c

index a261d8dc5f6290e60307ac08330614c2dba78c03..e14a75993286eab2d4b20dc0115020d2006e3955 100644 (file)
@@ -95,6 +95,9 @@ static int dwc3_generic_peripheral_ofdata_to_platdata(struct udevice *dev)
                return -ENODEV;
        }
 
+       dwc3->dis_u2_susphy_quirk = dev_read_bool(dev,
+                                                 "snps,dis_u2_susphy_quirk");
+
        return 0;
 }