Lines Matching refs:gpio_id_det
101 const char *gpio_id_det; member
106 .gpio_id_det = CONFIG_USB0_ID_DET,
111 .gpio_id_det = NULL,
116 .gpio_id_det = NULL,
121 .gpio_id_det = NULL,
130 int gpio_id_det; member
384 debug("%s: id_det = %d\n", __func__, usb_phy->gpio_id_det); in sun4i_usb_phy_vbus_detect()
408 debug("%s: id_det = %d\n", __func__, usb_phy->gpio_id_det); in sun4i_usb_phy_id_detect()
410 if (usb_phy->gpio_id_det < 0) in sun4i_usb_phy_id_detect()
411 return usb_phy->gpio_id_det; in sun4i_usb_phy_id_detect()
413 return gpio_get_value(usb_phy->gpio_id_det); in sun4i_usb_phy_id_detect()
472 phy->gpio_id_det = sunxi_name_to_gpio(info->gpio_id_det); in sun4i_usb_phy_probe()
473 if (phy->gpio_id_det >= 0) { in sun4i_usb_phy_probe()
474 ret = gpio_request(phy->gpio_id_det, "usb_id_det"); in sun4i_usb_phy_probe()
477 ret = gpio_direction_input(phy->gpio_id_det); in sun4i_usb_phy_probe()
480 sunxi_gpio_set_pull(phy->gpio_id_det, SUNXI_GPIO_PULL_UP); in sun4i_usb_phy_probe()