commit | 3c30f86be67da9bf2ebdc97788a1a076e1cb05c4 | [log] [tgz] |
---|---|---|
author | Neil Armstrong <neil.armstrong@linaro.org> | Tue Jan 17 10:11:46 2023 +0100 |
committer | Neil Armstrong <neil.armstrong@linaro.org> | Fri Jan 20 16:21:31 2023 +0100 |
tree | 5edc9a2d69011125c3eefd4883348a2eab1324e3 | |
parent | 4a0d718468cfa3674c2d4b25c00858ae7e1bad5d [diff] [blame] |
ARM: meson: switch AXG & GX dwc2 otg to DM With CONFIG_DM_USB_GADGET=y, we no longer need any board_usb_*() logic because: * the dwc2 driver is DM compatible, and handles its own clock enabling * the dwc3-meson-gxl glue drivers handles "force mode switching" Remove all mach-meson gx & axg usb code and enable CONFIG_DM_USB_GADGET. Note: Only configs having both CONFIG_USB_DWC3_MESON_GXL=y *and* USB_GADGET_DWC2_OTG=y have been updated. Thanks for the original work from Mattijs at [1] [1] https://lore.kernel.org/all/20221024-meson-dm-usb-v1-2-2ab077a503b9@baylibre.com/ Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Link: https://lore.kernel.org/r/20230117-u-boot-usb-gxl-otg-dm-v1-2-2853f6d75b06@linaro.org Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
diff --git a/configs/jethub_j80_defconfig b/configs/jethub_j80_defconfig index f3c47a0..1d11a96 100644 --- a/configs/jethub_j80_defconfig +++ b/configs/jethub_j80_defconfig
@@ -59,6 +59,7 @@ CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_MESON_SERIAL=y CONFIG_USB=y +CONFIG_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC2=y