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