]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: sdp: call board_usb_init at spl_sdp_load_image
authorFrank Li <Frank.Li@nxp.com>
Wed, 29 Apr 2020 02:35:10 +0000 (10:35 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 3 May 2020 13:31:28 +0000 (15:31 +0200)
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>
common/spl/spl_sdp.c

index 806bf1327efe8197ac9daaf98757351b40f05228..a54c7479d0b0d084fbdb7112d31e4585bf5cfb33 100644 (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) {