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_
|
|
|
|
|
2023-09-01 09:49:58 +00:00
|
|
|
int sdp_init(struct udevice *udc);
|
2019-06-04 19:56:29 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_SPL_BUILD
|
|
|
|
#include <spl.h>
|
|
|
|
|
2023-09-01 09:49:58 +00:00
|
|
|
int spl_sdp_handle(struct udevice *udc, struct spl_image_info *spl_image,
|
2022-01-14 13:31:38 +00:00
|
|
|
struct spl_boot_device *bootdev);
|
2019-06-04 19:56:29 +00:00
|
|
|
#else
|
2023-09-01 09:49:58 +00:00
|
|
|
int sdp_handle(struct udevice *udc);
|
2019-06-04 19:56:29 +00:00
|
|
|
#endif
|
2017-08-16 18:00:51 +00:00
|
|
|
|
|
|
|
#endif /* __SDP_H_ */
|