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:
parent
892834cb62
commit
1087df59e2
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue