mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-27 01:21:33 +00:00
spl: sdp: Add a callback to clean up USB driver
Because SDP directly jumps to next level boot image, we'd better clean up the USB driver before it. Implement a weak callback function, that spl sdp can use it to clean up USB driver. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
407e3844fc
commit
932c1ed328
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,
|
|||
ret = spl_sdp_handle(controller_index, spl_image);
|
||||
debug("SDP ended\n");
|
||||
|
||||
board_usb_cleanup(controller_index, USB_INIT_DEVICE);
|
||||
return ret;
|
||||
}
|
||||
SPL_LOAD_IMAGE_METHOD("USB SDP", 0, BOOT_DEVICE_BOARD, spl_sdp_load_image);
|
||||
|
|
Loading…
Add table
Reference in a new issue