Lines Matching refs:gpio_id_det
93 const char *gpio_id_det; member
98 .gpio_id_det = CONFIG_USB0_ID_DET,
103 .gpio_id_det = NULL,
108 .gpio_id_det = NULL,
113 .gpio_id_det = NULL,
122 int gpio_id_det; member
367 debug("%s: id_det = %d\n", __func__, usb_phy->gpio_id_det); in sun4i_usb_phy_vbus_detect()
391 debug("%s: id_det = %d\n", __func__, usb_phy->gpio_id_det); in sun4i_usb_phy_id_detect()
393 if (usb_phy->gpio_id_det < 0) in sun4i_usb_phy_id_detect()
394 return usb_phy->gpio_id_det; in sun4i_usb_phy_id_detect()
396 return gpio_get_value(usb_phy->gpio_id_det); in sun4i_usb_phy_id_detect()
452 phy->gpio_id_det = sunxi_name_to_gpio(info->gpio_id_det); in sun4i_usb_phy_probe()
453 if (phy->gpio_id_det >= 0) { in sun4i_usb_phy_probe()
454 ret = gpio_request(phy->gpio_id_det, "usb_id_det"); in sun4i_usb_phy_probe()
457 ret = gpio_direction_input(phy->gpio_id_det); in sun4i_usb_phy_probe()
460 sunxi_gpio_set_pull(phy->gpio_id_det, SUNXI_GPIO_PULL_UP); in sun4i_usb_phy_probe()