AdderUSB.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef __ADDERUSB__
  26. #define __ADDERUSB__
  27. /* Include the board port */
  28. #include "Adder.h"
  29. #define CONFIG_USB_DEVICE /* Include UDC driver */
  30. #define CONFIG_USB_TTY /* Bind the TTY driver to UDC */
  31. #define CFG_USB_EXTC_CLK 0x02 /* Oscillator on EXTC_CLK 2 */
  32. #define CFG_USB_BRG_CLK 0x04 /* or use Baud rate generator 0x04 */
  33. #define CFG_CONSOLE_IS_IN_ENV /* Console is in env */
  34. /* If you have a USB-IF assigned VendorID then you may wish to define
  35. * your own vendor specific values either in BoardName.h or directly in
  36. * usbd_vendor_info.h
  37. */
  38. /*
  39. #define CONFIG_USBD_MANUFACTURER "CodeHermit.ie"
  40. #define CONFIG_USBD_PRODUCT_NAME "Das U-Boot"
  41. #define CONFIG_USBD_VENDORID 0xFFFF
  42. #define CONFIG_USBD_PRODUCTID_GSERIAL 0xFFFF
  43. #define CONFIG_USBD_PRODUCTID_CDCACM 0xFFFE
  44. */
  45. #endif /* __ADDERUSB_H__ */