diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-08-16 11:00:51 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-08-23 10:41:58 +0200 |
commit | 5661f08a71446ab0ffb5bcf595709027e68f10fa (patch) | |
tree | 3e289ee22977fe46f9faa7150d133ce7992be7bf /include | |
parent | 4e76c0774a12873243b078a118d716928b884349 (diff) | |
download | u-boot-5661f08a71446ab0ffb5bcf595709027e68f10fa.zip u-boot-5661f08a71446ab0ffb5bcf595709027e68f10fa.tar.gz u-boot-5661f08a71446ab0ffb5bcf595709027e68f10fa.tar.bz2 |
usb: gadget: add SDP driver
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 <stefan.agner@toradex.com>
Reviewed-by: Ćukasz Majewski <lukma@denx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sdp.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sdp.h b/include/sdp.h new file mode 100644 index 0000000..f476bab --- /dev/null +++ b/include/sdp.h @@ -0,0 +1,16 @@ +/* + * sdp.h - Serial Download Protocol + * + * Copyright (C) 2017 Toradex + * Author: Stefan Agner <stefan.agner@toradex.com> + * + * 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_ */ |