1 /* SPDX-License-Identifier: GPL-2.0+ */
13 #include <usbdevice.h>
14 #if defined(CONFIG_PPC)
15 #include <usb/mpc8xx_udc.h>
16 #elif defined(CONFIG_CI_UDC)
17 #include <usb/ci_udc.h>
23 #ifndef CFG_USBD_CONFIGURATION_STR
24 #define CFG_USBD_CONFIGURATION_STR "TTY via USB"
27 #define CFG_USBD_SERIAL_OUT_ENDPOINT UDC_OUT_ENDPOINT
28 #define CFG_USBD_SERIAL_OUT_PKTSIZE UDC_OUT_PACKET_SIZE
29 #define CFG_USBD_SERIAL_IN_ENDPOINT UDC_IN_ENDPOINT
30 #define CFG_USBD_SERIAL_IN_PKTSIZE UDC_IN_PACKET_SIZE
31 #define CFG_USBD_SERIAL_INT_ENDPOINT UDC_INT_ENDPOINT
32 #define CFG_USBD_SERIAL_INT_PKTSIZE UDC_INT_PACKET_SIZE
33 #define CFG_USBD_SERIAL_BULK_PKTSIZE UDC_BULK_PACKET_SIZE
35 #define USBTTY_DEVICE_CLASS COMMUNICATIONS_DEVICE_CLASS
37 #define USBTTY_BCD_DEVICE 0x00
38 #define USBTTY_MAXPOWER 0x00
41 #define STR_MANUFACTURER 0x01
42 #define STR_PRODUCT 0x02
43 #define STR_SERIAL 0x03
44 #define STR_CONFIG 0x04
45 #define STR_DATA_INTERFACE 0x05
46 #define STR_CTRL_INTERFACE 0x06
47 #define STR_COUNT 0x07