spl: 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>
This commit is contained in:
Frank Li 2020-04-29 10:35:10 +08:00 committed by Stefano Babic
parent ea0f768e2c
commit 62597d2551

View File

@ -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) {