diff options
author | Sherry Sun <sherry.sun@nxp.com> | 2019-06-19 16:30:26 -0400 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2020-04-26 23:26:41 -0700 |
commit | d293c57115e1e411bd68b6583c5a79617961e439 (patch) | |
tree | 8b83480670e7742bd1ea2da9ccd755924ca5b7e7 /common | |
parent | bd7ba08122d1570012a86e14737ea949e967b492 (diff) |
MLK-22045-2 sdp: Add DM gadget support for sdp
When enable CONFG_SPL_DM_USB_GADGET, sdp should use
usb_gadget_initialize() and usb_gadget_release() to
support DM gadget driver.
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
(cherry picked from commit 22b59b69af0bfc0a2aeff9a995252d58c77c3955)
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl_sdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index d150951b86..644dfa8cc3 100644 --- a/common/spl/spl_sdp.c +++ b/common/spl/spl_sdp.c @@ -16,7 +16,7 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image, int ret; const int controller_index = CONFIG_SPL_SDP_USB_DEV; - board_usb_init(controller_index, USB_INIT_DEVICE); + usb_gadget_initialize(controller_index); g_dnl_clear_detach(); ret = g_dnl_register("usb_dnl_sdp"); @@ -39,7 +39,7 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image, ret = spl_sdp_handle(controller_index, spl_image); debug("SDP ended\n"); - board_usb_cleanup(controller_index, USB_INIT_DEVICE); + usb_gadget_release(controller_index); return ret; } SPL_LOAD_IMAGE_METHOD("USB SDP", 0, BOOT_DEVICE_BOARD, spl_sdp_load_image); |