1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * sdp.h - Serial Download Protocol
4  *
5  * Copyright (C) 2017 Toradex
6  * Author: Stefan Agner <stefan.agner@toradex.com>
7  */
8 
9 #ifndef __SDP_H_
10 #define __SDP_H_
11 
12 int sdp_init(struct udevice *udc);
13 
14 #ifdef CONFIG_XPL_BUILD
15 #include <spl.h>
16 
17 int spl_sdp_handle(struct udevice *udc, struct spl_image_info *spl_image,
18 		   struct spl_boot_device *bootdev);
19 #else
20 int sdp_handle(struct udevice *udc);
21 #endif
22 
23 #endif /* __SDP_H_ */
24