diff options
author | Frank Li <Frank.Li@nxp.com> | 2020-08-18 18:16:43 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-09-01 14:47:43 +0200 |
commit | 0ced2faba08a9faf0ac1cbeb2a320faa635651d9 (patch) | |
tree | 67cb8ecb1849f37d992a2ec0320bf4b18b1b21dd /common | |
parent | 7ed4eac43d672b8f6cefa6bf92fcaacf7dda0f7c (diff) |
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>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl_sdp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index e7f7b68411..ae9c09883a 100644 --- a/common/spl/spl_sdp.c +++ b/common/spl/spl_sdp.c @@ -19,6 +19,8 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image, usb_gadget_initialize(controller_index); + board_usb_init(0, USB_INIT_DEVICE); + g_dnl_clear_detach(); ret = g_dnl_register("usb_dnl_sdp"); if (ret) { |