From ae51f41d14f548d494ac41e0d21137c5a4c3f59c Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 30 Oct 2019 14:21:52 +0800 Subject: import the U-Boot code and make it compile --- include/sdp.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/sdp.h (limited to 'include/sdp.h') diff --git a/include/sdp.h b/include/sdp.h new file mode 100644 index 0000000..6ac64fb --- /dev/null +++ b/include/sdp.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * sdp.h - Serial Download Protocol + * + * Copyright (C) 2017 Toradex + * Author: Stefan Agner + */ + +#ifndef __SDP_H_ +#define __SDP_H_ + +int sdp_init(int controller_index); + +#ifdef CONFIG_SPL_BUILD +#include + +int spl_sdp_handle(int controller_index, struct spl_image_info *spl_image); +#else +int sdp_handle(int controller_index); +#endif + +#endif /* __SDP_H_ */ -- cgit v1.2.3