[U-Boot-Users] [PATCH 6/14] Add USB console support as default on Adder87x board
Bryan O'Donoghue
bodonoghue at codehermit.ie
Fri May 26 23:07:14 CEST 2006
Signed-off-by: Bryan O'Donoghue <bodonoghue at codehermit.ie>
modified: include/configs/Adder.h
Adds some CONFIG/CFG variables to support a USB console by
default on the Adder87x
---
include/configs/Adder.h | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
ff9d3244e19740db4de3a807785893e54d1888b4
diff --git a/include/configs/Adder.h b/include/configs/Adder.h
--- a/include/configs/Adder.h
+++ b/include/configs/Adder.h
@@ -5,6 +5,9 @@
* Support for Analogue&Micro Adder boards family.
* Tested on AdderII and Adder87x.
*
+ * Add USB console as default option.
+ * Bryan O'Donoghue <bodonoghue at codehermit.ie>
+ *
* See file CREDITS for list of people who contributed to this
* project.
*
@@ -38,6 +41,20 @@
#define CONFIG_ETHER_ON_FEC1
#define CONFIG_ETHER_ON_FEC2
+#if 1
+#define CONFIG_USB_DEVICE /* Include UDC driver */
+#define CONFIG_USB_TTY /* Bind the TTY driver to UDC */
+#define CONFIG_USBD_MANUFACTURER "CodeHermit.ie"
+#define CONFIG_USBD_PRODUCT_NAME "Das U-Boot"
+/* Never use the next two defines in any production system */
+#define CONFIG_USBD_VENDORID 0xFFFF /* Some mythical vendor */
+#define CONFIG_USBD_PRODUCTID 0xFFFF /* Some mythical device */
+
+#define CFG_USB_EXTC_CLK 0x02 /* Oscillator on EXTC_CLK 2 */
+#define CFG_USB_BRG_CLK 0x04 /* or use Baud rate generator 0x04 */
+#define CFG_CONSOLE_IS_IN_ENV
+#endif
+
#if defined(CONFIG_ETHER_ON_FEC1) || defined(CONFIG_ETHER_ON_FEC2)
#define CFG_DISCOVER_PHY
#define FEC_ENET
More information about the U-Boot
mailing list