Enable dual-role functionality and AM62 platform support for the DWC3
USB controller. Change USB_GADGET from module to built-in as required
by dual-role mode for proper runtime host/device switching.

Signed-off-by: Xulin Sun <[email protected]>
---
 bsp/ti-j7xxx/ti-j7xxx.cfg | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bsp/ti-j7xxx/ti-j7xxx.cfg b/bsp/ti-j7xxx/ti-j7xxx.cfg
index f2eac986..66638ea6 100755
--- a/bsp/ti-j7xxx/ti-j7xxx.cfg
+++ b/bsp/ti-j7xxx/ti-j7xxx.cfg
@@ -122,10 +122,12 @@ CONFIG_USB_CDNS_SUPPORT=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_OF_SIMPLE=y
+CONFIG_USB_DWC3_DUAL_ROLE=y
+CONFIG_USB_DWC3_AM62=y
 CONFIG_HAS_DMA=y
 CONFIG_OMAP_USB2=y
 CONFIG_USB_DWC3_KEYSTONE=y
-CONFIG_USB_GADGET=m
+CONFIG_USB_GADGET=y
 CONFIG_USB_CDNS3=m
 CONFIG_USB_CDNS3_GADGET=y
 CONFIG_USB_CDNS3_HOST=y
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16092): 
https://lists.yoctoproject.org/g/linux-yocto/message/16092
Mute This Topic: https://lists.yoctoproject.org/mt/116946326/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to