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