]>
git.ipfire.org Git - people/ms/u-boot.git/blob - common/spl/spl_sdp.c
2 * (C) Copyright 2016 Toradex
3 * Author: Stefan Agner <stefan.agner@toradex.com>
5 * SPDX-License-Identifier: GPL-2.0+
14 DECLARE_GLOBAL_DATA_PTR
;
16 static int spl_sdp_load_image(struct spl_image_info
*spl_image
,
17 struct spl_boot_device
*bootdev
)
20 const int controller_index
= 0;
23 g_dnl_register("usb_dnl_sdp");
25 ret
= sdp_init(controller_index
);
27 pr_err("SDP init failed: %d\n", ret
);
31 /* This command typically does not return but jumps to an image */
32 sdp_handle(controller_index
);
33 pr_err("SDP ended\n");
37 SPL_LOAD_IMAGE_METHOD("USB SDP", 0, BOOT_DEVICE_BOARD
, spl_sdp_load_image
);