]> Git Repo - J-u-boot.git/blame - drivers/serial/usbtty.h
pinctrl: renesas: Minimize R8A77970 V3M PFC tables
[J-u-boot.git] / drivers / serial / usbtty.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
232c150a
WD
2/*
3 * (C) Copyright 2003
4 * Gerry Hamel, [email protected], Texas Instruments
5 *
16c8d5e7
WD
6 * (C) Copyright 2006
7 * Bryan O'Donoghue, [email protected], CodeHermit
232c150a
WD
8 */
9
10#ifndef __USB_TTY_H__
11#define __USB_TTY_H__
12
2731b9a8 13#include <usbdevice.h>
16c8d5e7 14#if defined(CONFIG_PPC)
2731b9a8 15#include <usb/mpc8xx_udc.h>
f016f8ca
MV
16#elif defined(CONFIG_CI_UDC)
17#include <usb/ci_udc.h>
16c8d5e7 18#endif
232c150a 19
449697f1 20#include <usb/udc.h>
efb2172e 21#include <version.h>
232c150a 22
6e7df1d1
TR
23#ifndef CFG_USBD_CONFIGURATION_STR
24#define CFG_USBD_CONFIGURATION_STR "TTY via USB"
dedacc18 25#endif
232c150a 26
6e7df1d1
TR
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
232c150a
WD
34
35#define USBTTY_DEVICE_CLASS COMMUNICATIONS_DEVICE_CLASS
232c150a 36
53677ef1
WD
37#define USBTTY_BCD_DEVICE 0x00
38#define USBTTY_MAXPOWER 0x00
232c150a 39
16c8d5e7
WD
40#define STR_LANG 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
232c150a
WD
48
49#endif
This page took 0.557923 seconds and 4 git commands to generate.