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