mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
4e76c0774a
commit
5661f08a71
4 changed files with 745 additions and 0 deletions
16
include/sdp.h
Normal file
16
include/sdp.h
Normal file
|
@ -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_ */
|
Loading…
Add table
Add a link
Reference in a new issue