diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-11-25 18:16:15 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2022-01-26 23:23:17 +0100 |
commit | fc2b399ac03b91339a1cb1bfd4d1a9ca87fe95c6 (patch) | |
tree | 171f14dc3ae19d1050b10d53a7d9ae63d36fda55 /common/stdio.c | |
parent | 334a9b9d6aff4f0efa5eef16b8a9e204c7a6c906 (diff) | |
download | u-boot-fc2b399ac03b91339a1cb1bfd4d1a9ca87fe95c6.tar.gz u-boot-fc2b399ac03b91339a1cb1bfd4d1a9ca87fe95c6.tar.bz2 u-boot-fc2b399ac03b91339a1cb1bfd4d1a9ca87fe95c6.zip |
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>
Diffstat (limited to 'common/stdio.c')
-rw-r--r-- | common/stdio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/stdio.c b/common/stdio.c index 976f51c252..063c659bbc 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -381,6 +381,9 @@ int stdio_add_devices(void) #ifdef CONFIG_USB_TTY drv_usbtty_init(); #endif +#ifdef CONFIG_USB_FUNCTION_ACM + drv_usbacm_init (); +#endif if (IS_ENABLED(CONFIG_NETCONSOLE)) drv_nc_init(); #ifdef CONFIG_JTAG_CONSOLE |