summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-11-11 09:59:42 -0800
committerMax Krummenacher <max.krummenacher@toradex.com>2017-01-18 09:46:13 +0100
commitd7b22787ea3015270000d6b8bcb829c82fb9fc67 (patch)
tree736bde70c455189105bb6b9d51e25899d7bf7f57 /include
parent22e68cbd1fa28e0a9df45cfbfb43f0c606370f32 (diff)
usb: gadget: add SDP driver
Add SDP (Serial Downloader Protocol) implementation for U-Boot. The protocol is used in NXP SoCs 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. Currently, this implementation only supports downloading images and reading registers. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'include')
-rw-r--r--include/sdp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/sdp.h b/include/sdp.h
new file mode 100644
index 00000000000..03c4a234348
--- /dev/null
+++ b/include/sdp.h
@@ -0,0 +1,16 @@
+/*
+ * sdp.h - Serial Download Protocol
+ *
+ * Copyright (C) 2016 Toradex
+ * Author: Stefan Agner <stefan.agner@toradex.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __SDP_H_
+#define __SDP_H_
+
+int sdp_init(void);
+int sdp_handle(void);
+
+#endif /* __SDP_H_ */