usb: cdns3-starfive: Add extcon usb gadget state with always connected 36/297436/2
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 18 Aug 2023 06:34:10 +0000 (15:34 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 18 Aug 2023 09:18:10 +0000 (18:18 +0900)
commit11a8468c73f2db0f1b5da367936c52c6d9bc700e
tree543e73245b0689a3c7ed9188c99c91a078fbc9e0
parent9ed5b31605b1c53aa59576929edcb4176e403a73
usb: cdns3-starfive: Add extcon usb gadget state with always connected

Add extcon usb gadget state and set usb gadget state as connected.

The cdns3-starfive usb c port in visionfive2 board only has usb
d-/d+ lines and vbus and ground lines are used for power supply.
Because of the H/W limitation, it is not possible to detect usb
c port connected state.

In Tizen, deviced configures usb gadget functions only with the
usb connected state, so, to support usb gadget functionality,
the usb state should be set.

Change-Id: I3e3a25a726c7205b3d9a5fd96d8557562bfda81f
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/usb/cdns3/Kconfig
drivers/usb/cdns3/cdns3-starfive.c