You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
extcon: usb-gpio: add some extcon cables
Current Code USB2 PHY use extcon notifier to send USB charger types to power driver. If we use gpio to detect vbus or id state, the extcon device is allocated and registered by extcon-usb-gpio.c driver and USB2 PHY obtains this extcon device through DTS. If these cables are missing, it will cause USB2 PHY driver to be unable to set the status of these cables, leading to functional abnormalities. Change-Id: Iec27dfde4ec8bf12294bd6c57c3db5dada2f35cd Signed-off-by: William Wu <william.wu@rock-chips.com> Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
This commit is contained in:
@@ -37,6 +37,11 @@ struct usb_extcon_info {
|
||||
static const unsigned int usb_extcon_cable[] = {
|
||||
EXTCON_USB,
|
||||
EXTCON_USB_HOST,
|
||||
EXTCON_USB_VBUS_EN,
|
||||
EXTCON_CHG_USB_SDP,
|
||||
EXTCON_CHG_USB_CDP,
|
||||
EXTCON_CHG_USB_DCP,
|
||||
EXTCON_CHG_USB_SLOW,
|
||||
EXTCON_NONE,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user