AdderUSB.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef __ADDERUSB__
  10. #define __ADDERUSB__
  11. /* Include the board port */
  12. #include "Adder.h"
  13. #define CONFIG_USB_DEVICE /* Include UDC driver */
  14. #define CONFIG_USB_TTY /* Bind the TTY driver to UDC */
  15. #define CONFIG_SYS_USB_EXTC_CLK 0x02 /* Oscillator on EXTC_CLK 2 */
  16. #define CONFIG_SYS_USB_BRG_CLK 0x04 /* or use Baud rate generator 0x04 */
  17. #define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Console is in env */
  18. /* If you have a USB-IF assigned VendorID then you may wish to define
  19. * your own vendor specific values either in BoardName.h or directly in
  20. * usbd_vendor_info.h
  21. */
  22. /*
  23. #define CONFIG_USBD_MANUFACTURER "CodeHermit.ie"
  24. #define CONFIG_USBD_PRODUCT_NAME "Das U-Boot"
  25. #define CONFIG_USBD_VENDORID 0xFFFF
  26. #define CONFIG_USBD_PRODUCTID_GSERIAL 0xFFFF
  27. #define CONFIG_USBD_PRODUCTID_CDCACM 0xFFFE
  28. */
  29. #endif /* __ADDERUSB_H__ */