blob: 5492f9c47d29983ccf61d044e28558018ac9c672 [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
Marek Vasut2bd299d2023-09-01 11:49:58 +020012int sdp_init(struct udevice *udc);
Frieder Schrempf09580e22019-06-04 21:56:29 +020013
14#ifdef CONFIG_SPL_BUILD
15#include <spl.h>
16
Marek Vasut2bd299d2023-09-01 11:49:58 +020017int spl_sdp_handle(struct udevice *udc, struct spl_image_info *spl_image,
Pali Rohárdda8f882022-01-14 14:31:38 +010018 struct spl_boot_device *bootdev);
Frieder Schrempf09580e22019-06-04 21:56:29 +020019#else
Marek Vasut2bd299d2023-09-01 11:49:58 +020020int sdp_handle(struct udevice *udc);
Frieder Schrempf09580e22019-06-04 21:56:29 +020021#endif
Stefan Agnerffbd5d02017-08-16 11:00:51 -070022
23#endif /* __SDP_H_ */