@@ -550,6 +550,21 @@ static const struct dwc3_acpi_pdata sdm845_acpi_pdata = {
.ss_phy_irq_index = 2
};
+static bool dwc3_qcom_find_gpio_usb_connector(struct platform_device *pdev)
+{
+ struct device_node *np;
+ bool retval = false;
+
+ np = of_get_child_by_name(pdev->dev.of_node, "connector");
+ if (np) {
+ if (of_device_is_compatible(np, "gpio-usb-b-connector"))
+ retval = true;
+ }
+ of_node_put(np);
+
+ return retval;
+}
+
static int dwc3_qcom_probe(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;