Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 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 |
Wolfgang Denk | 386eda0 | 2006-06-14 18:14:56 +0200 | [diff] [blame] | 6 | * |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 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 */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 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 */ |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 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 |
Wolfgang Denk | 386eda0 | 2006-06-14 18:14:56 +0200 | [diff] [blame] | 40 | * usbd_vendor_info.h |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 41 | */ |
| 42 | |
Wolfgang Denk | 386eda0 | 2006-06-14 18:14:56 +0200 | [diff] [blame] | 43 | /* |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 44 | #define CONFIG_USBD_MANUFACTURER "CodeHermit.ie" |
| 45 | #define CONFIG_USBD_PRODUCT_NAME "Das U-Boot" |
Wolfgang Denk | 386eda0 | 2006-06-14 18:14:56 +0200 | [diff] [blame] | 46 | #define CONFIG_USBD_VENDORID 0xFFFF |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 47 | #define CONFIG_USBD_PRODUCTID_GSERIAL 0xFFFF |
| 48 | #define CONFIG_USBD_PRODUCTID_CDCACM 0xFFFE |
| 49 | */ |
| 50 | |
| 51 | #endif /* __ADDERUSB_H__ */ |