]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: board: Prepare for use of DM_USB_GADGET with DWC2_OTG
authorJonas Karlman <jonas@kwiboo.se>
Sun, 10 Mar 2024 18:50:58 +0000 (18:50 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 14 Mar 2024 10:19:27 +0000 (18:19 +0800)
commit06fac9dd1475fad7016c7ef6c68acdaf48b055b4
tree146efbf99d1c196901bd57ece3976abc76295385
parent8c19275fdb13cdc1b8719436fa9477c294996fab
rockchip: board: Prepare for use of DM_USB_GADGET with DWC2_OTG

The board_usb_init() and board_usb_cleanup() functions is always
included when USB_GADGET and USB_GADGET_DWC2_OTG is enabled.

Prepare for a change to use DM_USB_GADGET with DWC2_OTG by adding an
extra ifdef condition. The extra separate ifdef for USB_GADGET prepare
for next patch that adds a g_dnl_bind_fixup() function.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/board.c