1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2016 Toradex
13 static int spl_sdp_load_image(struct spl_image_info *spl_image,
14 struct spl_boot_device *bootdev)
17 const int controller_index = 0;
20 ret = g_dnl_register("usb_dnl_sdp");
22 pr_err("SDP dnl register failed: %d\n", ret);
26 ret = sdp_init(controller_index);
28 pr_err("SDP init failed: %d\n", ret);
32 /* This command typically does not return but jumps to an image */
33 sdp_handle(controller_index);
34 pr_err("SDP ended\n");
38 SPL_LOAD_IMAGE_METHOD("USB SDP", 0, BOOT_DEVICE_BOARD, spl_sdp_load_image);