summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-06-28 08:00:22 -0400
committerTom Rini <trini@konsulko.com>2019-06-28 08:00:22 -0400
commit0352e878d2b80b2575e02310e891e936251b3992 (patch)
tree3a35d816b28031ae2f5a8243afcf324779b4031f /common
parentcb8cc1d8fbf9c4254a2018ad697fc6fd08fbb158 (diff)
parent0ac662da35e48b859b5d43e0c86f233f25730ee5 (diff)
Merge tag 'u-boot-imx-20190628' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
Fixes for 2019.07 - menlo board - allow SDB on Sabre - HAB for mx6sl - apalis board
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_sdp.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c
index 7fc4404971..806bf1327e 100644
--- a/common/spl/spl_sdp.c
+++ b/common/spl/spl_sdp.c
@@ -29,10 +29,14 @@ static int spl_sdp_load_image(struct spl_image_info *spl_image,
return -ENODEV;
}
- /* This command typically does not return but jumps to an image */
- sdp_handle(controller_index);
- pr_err("SDP ended\n");
+ /*
+ * This command either loads a legacy image, jumps and never returns,
+ * or it loads a FIT image and returns it to be handled by the SPL
+ * code.
+ */
+ ret = spl_sdp_handle(controller_index, spl_image);
+ debug("SDP ended\n");
- return -EINVAL;
+ return ret;
}
SPL_LOAD_IMAGE_METHOD("USB SDP", 0, BOOT_DEVICE_BOARD, spl_sdp_load_image);