usb: chipidea: Add support for VBUS control with PHY
authorPiyush Mehta <piyush.mehta@xilinx.com>
Mon, 22 Aug 2022 05:40:51 +0000 (11:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 07:07:52 +0000 (09:07 +0200)
commit66d1c8021e1d9c97101d58fa09c33c002d96747a
treeb581ba435464344857cd2ff852d58c676edd5bc2
parent6b91a8e3412a13a8cb1ec610c702db96301c0da0
usb: chipidea: Add support for VBUS control with PHY

Some platforms make use of VBUS control over PHY which means controller
driver has to access PHY registers to turn on/off VBUS line.This patch
adds support for such platforms in chipidea.

Flag 'CI_HDRC_PHY_VBUS_CONTROL' added to support VBus control feature.

Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Piyush Mehta <piyush.mehta@xilinx.com>
Signed-off-by: Piyush Mehta <piyush.mehta@amd.com>
Link: https://lore.kernel.org/r/20220822054051.2941282-1-piyush.mehta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci_hdrc_usb2.c
drivers/usb/chipidea/host.c
drivers/usb/chipidea/otg_fsm.c
include/linux/usb/chipidea.h