spl: sdp: Add a callback to clean up USB driver
authorYe Li <ye.li@nxp.com>
Wed, 29 Apr 2020 02:35:13 +0000 (10:35 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 3 May 2020 13:31:48 +0000 (15:31 +0200)
commit932c1ed328f7965e430dde98cd3403c39b22a4bc
tree8e8a0fb034d9b8f1f55b1f5805d1e1b547ab9f97
parent407e3844fc8bafb5a648180ec33c2ca806c1a126
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>
common/spl/spl_sdp.c