From 5661f08a71446ab0ffb5bcf595709027e68f10fa Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 16 Aug 2017 11:00:51 -0700 Subject: usb: gadget: add SDP driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoC's boot ROM and allows to download program images. Beside that, it can also be used to read/write registers and download complete Device Configuration Data (DCD) sets. This basic implementation supports downloading images with the imx header format reading and writing registers. Signed-off-by: Stefan Agner Reviewed-by: Ɓukasz Majewski --- include/sdp.h | 16 ++++++++++++++++ 1 file changed, 16 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 0000000000..f476bab8f1 --- /dev/null +++ b/include/sdp.h @@ -0,0 +1,16 @@ +/* + * sdp.h - Serial Download Protocol + * + * Copyright (C) 2017 Toradex + * Author: Stefan Agner + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __SDP_H_ +#define __SDP_H_ + +int sdp_init(int controller_index); +void sdp_handle(int controller_index); + +#endif /* __SDP_H_ */ -- cgit v1.2.3