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 | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef __ADDERUSB__ |
| 11 | #define __ADDERUSB__ |
| 12 | |
| 13 | /* Include the board port */ |
| 14 | #include "Adder.h" |
| 15 | |
| 16 | #define CONFIG_USB_DEVICE /* Include UDC driver */ |
| 17 | #define CONFIG_USB_TTY /* Bind the TTY driver to UDC */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 18 | #define CONFIG_SYS_USB_EXTC_CLK 0x02 /* Oscillator on EXTC_CLK 2 */ |
| 19 | #define CONFIG_SYS_USB_BRG_CLK 0x04 /* or use Baud rate generator 0x04 */ |
| 20 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Console is in env */ |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 21 | |
| 22 | /* If you have a USB-IF assigned VendorID then you may wish to define |
| 23 | * your own vendor specific values either in BoardName.h or directly in |
Wolfgang Denk | 386eda0 | 2006-06-14 18:14:56 +0200 | [diff] [blame] | 24 | * usbd_vendor_info.h |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 25 | */ |
| 26 | |
Wolfgang Denk | 386eda0 | 2006-06-14 18:14:56 +0200 | [diff] [blame] | 27 | /* |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 28 | #define CONFIG_USBD_MANUFACTURER "CodeHermit.ie" |
| 29 | #define CONFIG_USBD_PRODUCT_NAME "Das U-Boot" |
Wolfgang Denk | 386eda0 | 2006-06-14 18:14:56 +0200 | [diff] [blame] | 30 | #define CONFIG_USBD_VENDORID 0xFFFF |
Wolfgang Denk | 16c8d5e | 2006-06-14 17:45:53 +0200 | [diff] [blame] | 31 | #define CONFIG_USBD_PRODUCTID_GSERIAL 0xFFFF |
| 32 | #define CONFIG_USBD_PRODUCTID_CDCACM 0xFFFE |
| 33 | */ |
| 34 | |
| 35 | #endif /* __ADDERUSB_H__ */ |