summaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@nxp.com>2020-04-29 10:35:10 +0800
committerStefano Babic <sbabic@denx.de>2020-05-03 15:31:28 +0200
commit62597d25514e3e36e891c626620624755d8cb56d (patch)
tree9251944a9942dae8fd974d73746b78c62cf6758f /common/spl
parentea0f768e2c835d2b77bdc1db7d4ab1416e45e432 (diff)
downloadu-boot-62597d25514e3e36e891c626620624755d8cb56d.tar.gz
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>
Diffstat (limited to 'common/spl')
-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) {