2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-08-16 18:00:51 +00:00
|
|
|
/*
|
|
|
|
* sdp.h - Serial Download Protocol
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Toradex
|
|
|
|
* Author: Stefan Agner <stefan.agner@toradex.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SDP_H_
|
|
|
|
#define __SDP_H_
|
|
|
|
|
|
|
|
int sdp_init(int controller_index);
|
2019-06-04 19:56:29 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_SPL_BUILD
|
|
|
|
#include <spl.h>
|
|
|
|
|
|
|
|
int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image);
|
|
|
|
#else
|
|
|
|
int sdp_handle(int controller_index);
|
|
|
|
#endif
|
2017-08-16 18:00:51 +00:00
|
|
|
|
|
|
|
#endif /* __SDP_H_ */
|