From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Tue, 18 Aug 2020 18:16:43 +0800 Subject: [PATCH v2 1/7] sdp: call board_usb_init at spl_sdp_load_image In-Reply-To: <20200818101649.16509-1-peng.fan@nxp.com> References: <20200818101649.16509-1-peng.fan@nxp.com> Message-ID: <20200818101649.16509-2-peng.fan@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Frank Li Need initialize UDC before run sdp download Signed-off-by: Frank Li Signed-off-by: Peng Fan --- common/spl/spl_sdp.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.16.4