usb: host: dwc2: disable hnp and srp default for rockchip platform

Due to rockchip platform use live-tree which deployed from linux kernel,
so abandon the previous 'hnp-srp-disable' DT property and disable hnp and
srp default at probe time.

Change-Id: I5fb34bc789812d463b6a3c42b268af447d130950
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
Frank Wang 2018-02-24 10:06:43 +08:00 committed by Kever Yang
parent d2e45d1f9b
commit ee0a9610b2
1 changed files with 4 additions and 0 deletions

View File

@ -1263,6 +1263,10 @@ static int dwc2_usb_probe(struct udevice *dev)
bus_priv->desc_before_addr = true;
#ifdef CONFIG_ARCH_ROCKCHIP
priv->hnp_srp_disable = true;
#endif
return dwc2_init_common(dev, priv);
}