blob: 6ac64fb1f31653172f95e6920a1ed0434c3cb085 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Agner5661f082017-08-16 11:00:51 -07002/*
3 * sdp.h - Serial Download Protocol
4 *
5 * Copyright (C) 2017 Toradex
6 * Author: Stefan Agner <stefan.agner@toradex.com>
Stefan Agner5661f082017-08-16 11:00:51 -07007 */
8
9#ifndef __SDP_H_
10#define __SDP_H_
11
12int sdp_init(int controller_index);
Frieder Schrempf2c72ead2019-06-04 21:56:29 +020013
14#ifdef CONFIG_SPL_BUILD
15#include <spl.h>
16
17int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image);
18#else
19int sdp_handle(int controller_index);
20#endif
Stefan Agner5661f082017-08-16 11:00:51 -070021
22#endif /* __SDP_H_ */