1 /* 2 * Copyright (C) 2006 CodeHermit. 3 * Bryan O'Donoghue <bodonoghue@codehermit.ie> 4 * 5 * Provides support for USB console on the Analogue & Micro Adder87x 6 * 7 * See file CREDITS for list of people who contributed to this 8 * project. 9 * 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public License as 12 * published by the Free Software Foundation; either version 2 of 13 * the License, or (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 23 * MA 02111-1307 USA 24 */ 25 26 #ifndef __ADDERUSB__ 27 #define __ADDERUSB__ 28 29 /* Include the board port */ 30 #include "Adder.h" 31 32 #define CONFIG_USB_DEVICE /* Include UDC driver */ 33 #define CONFIG_USB_TTY /* Bind the TTY driver to UDC */ 34 #define CONFIG_SYS_USB_EXTC_CLK 0x02 /* Oscillator on EXTC_CLK 2 */ 35 #define CONFIG_SYS_USB_BRG_CLK 0x04 /* or use Baud rate generator 0x04 */ 36 #define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Console is in env */ 37 38 /* If you have a USB-IF assigned VendorID then you may wish to define 39 * your own vendor specific values either in BoardName.h or directly in 40 * usbd_vendor_info.h 41 */ 42 43 /* 44 #define CONFIG_USBD_MANUFACTURER "CodeHermit.ie" 45 #define CONFIG_USBD_PRODUCT_NAME "Das U-Boot" 46 #define CONFIG_USBD_VENDORID 0xFFFF 47 #define CONFIG_USBD_PRODUCTID_GSERIAL 0xFFFF 48 #define CONFIG_USBD_PRODUCTID_CDCACM 0xFFFE 49 */ 50 51 #endif /* __ADDERUSB_H__ */ 52