]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: meson: g12a: switch dwc2 otg to DM
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Wed, 23 Nov 2022 15:42:50 +0000 (16:42 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 17 Jan 2023 08:27:17 +0000 (09:27 +0100)
commitb96640cbfb319071aea7915cfa2f7aefe08bbc08
treea71c16245929fbcb7d57e7a954ebafd366a8e331
parentfd083842d719cf13d64b0ec061d3c7be98be91a2
ARM: meson: g12a: switch 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-g12a glue drivers handles "force mode switching"

Remove all mach-meson/g12a usb code and enable CONFIG_DM_USB_GADGET.

Note: Only configs having both CONFIG_USB_DWC3_MESON_G12A=y *and*
      USB_GADGET_DWC2_OTG=y have been updated.

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20221024-meson-dm-usb-v1-2-2ab077a503b9@baylibre.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
18 files changed:
arch/arm/mach-meson/board-g12a.c
configs/bananapi-m5_defconfig
configs/beelink-gsking-x_defconfig
configs/beelink-gtking_defconfig
configs/beelink-gtkingpro_defconfig
configs/khadas-vim3_android_ab_defconfig
configs/khadas-vim3_android_defconfig
configs/khadas-vim3_defconfig
configs/khadas-vim3l_android_ab_defconfig
configs/khadas-vim3l_android_defconfig
configs/khadas-vim3l_defconfig
configs/odroid-c4_defconfig
configs/odroid-hc4_defconfig
configs/odroid-n2_defconfig
configs/radxa-zero_defconfig
configs/sei510_defconfig
configs/sei610_defconfig
configs/u200_defconfig