summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@nxp.com>2018-08-09 10:23:37 -0500
committerYe Li <ye.li@nxp.com>2020-04-26 23:24:08 -0700
commit765202aebb5e335c4bb9b950532262fc52f088e4 (patch)
treef8b2881f0a0f960e8aefaded4792858cf7e79684 /common
parent8ecb8947f553f4f28d7bbdf52eb4653cb98ff343 (diff)
MLK-19181-1: sdp: call board_usb_init at spl_sdp_load_image
Need initialize UDC before run sdp download Signed-off-by: Frank Li <Frank.Li@nxp.com> (cherry picked from commit ab6696c4f7ff3f13153e27b696fcbf38188b009a) (cherry picked from commit 9f0962216f852a7f5ade66bbf66f57a36654a5bd)
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_sdp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c
index 806bf1327e..a54c7479d0 100644
--- a/common/spl/spl_sdp.c
+++ b/common/spl/spl_sdp.c
@@ -16,6 +16,8 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,
int ret;
const int controller_index = 0;
+ board_usb_init(0, USB_INIT_DEVICE);
+
g_dnl_clear_detach();
ret = g_dnl_register("usb_dnl_sdp");
if (ret) {