usb: gadget: Add CDC ACM function
authorLoic Poulain <loic.poulain@linaro.org>
Thu, 25 Nov 2021 17:16:15 +0000 (18:16 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 26 Jan 2022 22:23:17 +0000 (23:23 +0100)
commitfc2b399ac03b91339a1cb1bfd4d1a9ca87fe95c6
tree171f14dc3ae19d1050b10d53a7d9ae63d36fda55
parent334a9b9d6aff4f0efa5eef16b8a9e204c7a6c906
usb: gadget: Add CDC ACM function

Add support for CDC ACM using the new UDC and gadget API. This protocol
can be used for serial over USB data transfer and is widely supported
by various OS (GNU/Linux, MS-Windows, OSX...). The usual purpose of
such link is to access device debug console and can be useful for
products not exposing regular UART to the user.

A default stdio device named 'usbacm' is created, and can be used
to redirect console to USB link over CDC ACM:

> setenv stdin usbacm; setenv stdout usbacm

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
common/stdio.c
drivers/usb/gadget/Kconfig
drivers/usb/gadget/Makefile
drivers/usb/gadget/f_acm.c [new file with mode: 0644]
include/stdio_dev.h