mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
232c150a25
add support for USB-based console (enable with "setenv stdout usbtty; setenv stdin usbtty")
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
/*
|
|
* (C) Copyright 2003
|
|
* Gerry Hamel, geh@ti.com, Texas Instruments
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
*/
|
|
|
|
#ifndef __USB_TTY_H__
|
|
#define __USB_TTY_H__
|
|
|
|
|
|
#include "usbdcore.h"
|
|
#include "usbdcore_omap1510.h"
|
|
|
|
|
|
#define NUM_CONFIGS 1
|
|
#define NUM_INTERFACES 1
|
|
#define NUM_ENDPOINTS 3
|
|
|
|
#define EP0_MAX_PACKET_SIZE 64
|
|
|
|
#define CONFIG_USBD_CONFIGURATION_STR "TTY via USB"
|
|
#define CONFIG_USBD_INTERFACE_STR "Simple Serial Data Interface - Bulk Mode"
|
|
|
|
|
|
#define CONFIG_USBD_SERIAL_OUT_ENDPOINT 2
|
|
#define CONFIG_USBD_SERIAL_OUT_PKTSIZE 64
|
|
#define CONFIG_USBD_SERIAL_IN_ENDPOINT 1
|
|
#define CONFIG_USBD_SERIAL_IN_PKTSIZE 64
|
|
#define CONFIG_USBD_SERIAL_INT_ENDPOINT 5
|
|
#define CONFIG_USBD_SERIAL_INT_PKTSIZE 16
|
|
|
|
|
|
#define USBTTY_DEVICE_CLASS COMMUNICATIONS_DEVICE_CLASS
|
|
#define USBTTY_DEVICE_SUBCLASS COMMUNICATIONS_NO_SUBCLASS
|
|
#define USBTTY_DEVICE_PROTOCOL COMMUNICATIONS_NO_PROTOCOL
|
|
|
|
#define USBTTY_INTERFACE_CLASS 0xFF /* Vendor Specific */
|
|
#define USBTTY_INTERFACE_SUBCLASS 0x02
|
|
#define USBTTY_INTERFACE_PROTOCOL 0x01
|
|
|
|
#define USBTTY_BCD_DEVICE 0x0
|
|
#define USBTTY_MAXPOWER 0x0
|
|
|
|
#define STR_MANUFACTURER 1
|
|
#define STR_PRODUCT 2
|
|
#define STR_SERIAL 3
|
|
#define STR_CONFIG 4
|
|
#define STR_INTERFACE 5
|
|
|
|
#endif
|