summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2019-01-03 00:46:09 -0800
committerYe Li <ye.li@nxp.com>2019-01-08 21:46:31 -0800
commit1f6b3efc62cb277fd4316d8ed5115f47b09369a0 (patch)
treedf657d3d201013c5638f6bc25ddb78194a0b1493 /common
parent6ca3fc0bbdbcc6d870ceffa9d38c47d2e4edfee4 (diff)
MLK-20559-5 f_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>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_sdp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c
index a3cafa5895..d59ddc805b 100644
--- a/common/spl/spl_sdp.c
+++ b/common/spl/spl_sdp.c
@@ -13,6 +13,11 @@
DECLARE_GLOBAL_DATA_PTR;
+void board_sdp_cleanup(void)
+{
+ board_usb_cleanup(CONFIG_SPL_SDP_USB_DEV, USB_INIT_DEVICE);
+}
+
static int spl_sdp_load_image(struct spl_image_info *spl_image,
struct spl_boot_device *bootdev)
{