blob: 6d89baa04ec527ce5f370cbab8ae7ba711e6d730 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefan Agnerffbd5d02017-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 Agnerffbd5d02017-08-16 11:00:51 -07007 */
8
9#ifndef __SDP_H_
10#define __SDP_H_
11
12int sdp_init(int controller_index);
Frieder Schrempf09580e22019-06-04 21:56:29 +020013
14#ifdef CONFIG_SPL_BUILD
15#include <spl.h>
16
Pali Rohárdda8f882022-01-14 14:31:38 +010017int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image,
18 struct spl_boot_device *bootdev);
Frieder Schrempf09580e22019-06-04 21:56:29 +020019#else
20int sdp_handle(int controller_index);
21#endif
Stefan Agnerffbd5d02017-08-16 11:00:51 -070022
23#endif /* __SDP_H_ */