You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 2.2 KiB

Add FTDI JTAG driver using MPSSE layer Based on ft2232.c but uses the MPSSE layer for low-level access, greatly simplifying the JTAG logic. Remove all libftdi/FTD2XX code and all layout specific code. Layout specifications are instead handled in Tcl. Use a signal abstraction to enable Tcl configuration files to define outputs for one or several FTDI GPIO. These outputs can then be controlled using the ftdi_set_signal command. Special signal names are reserved for nTRST, nSRST and LED (for blink) so that they, if defined, will be used for their customary purpose. Depending on the type of buffer attached to the FTDI GPIO, the outputs have to be controlled differently. In order to support tristateable signals such as nSRST, both a data GPIO and an output-enable GPIO can be specified for each signal. The following output buffer configurations are supported: * Push-pull with one FTDI output as (non-)inverted data line * Open drain with one FTDI output as (non-)inverted output-enable * Tristate with one FTDI output as (non-)inverted data line and another FTDI output as (non-)inverted output-enable * Unbuffered, using the FTDI GPIO as a tristate output directly by switching data and direction as necessary The data and output-enables are specified as 16-bit bitmasks, corresponding to the concatenation of the high and low FTDI GPIO registers. To specify an unbuffered output, use the same bitmask for both data and output-enable. The adapter configuration file must also specify default values for the FTDI data and direction GPIO registers, and the channel being used (if different from 0). Change-Id: I287a41d4c696cf5fc74eb10d5e63578b0dc7f826 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/452 Tested-by: jenkins Reviewed-by: Peter Stuge <peter@stuge.se>
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. include $(top_srcdir)/common.mk
  2. noinst_LTLIBRARIES = libocdjtagdrivers.la
  3. libocdjtagdrivers_la_SOURCES = \
  4. $(DRIVERFILES)
  5. ocddatadir = $(pkglibdir)
  6. nobase_dist_ocddata_DATA =
  7. ULINK_FIRMWARE = $(srcdir)/OpenULINK
  8. EXTRA_DIST = $(ULINK_FIRMWARE)
  9. DRIVERFILES =
  10. # Standard Driver: common files
  11. DRIVERFILES += driver.c
  12. if USB
  13. DRIVERFILES += usb_common.c
  14. endif
  15. if USE_LIBUSB1
  16. DRIVERFILES += libusb1_common.c
  17. else
  18. if USE_LIBUSB0
  19. DRIVERFILES += libusb0_common.c
  20. endif
  21. endif
  22. if BITBANG
  23. DRIVERFILES += bitbang.c
  24. endif
  25. if PARPORT
  26. DRIVERFILES += parport.c
  27. endif
  28. if DUMMY
  29. DRIVERFILES += dummy.c
  30. endif
  31. if FT2232_DRIVER
  32. DRIVERFILES += ft2232.c
  33. endif
  34. if FTDI_DRIVER
  35. DRIVERFILES += ftdi.c mpsse.c
  36. endif
  37. if USB_BLASTER_DRIVER
  38. DRIVERFILES += usb_blaster.c
  39. endif
  40. if AMTJTAGACCEL
  41. DRIVERFILES += amt_jtagaccel.c
  42. endif
  43. if EP93XX
  44. DRIVERFILES += ep93xx.c
  45. endif
  46. if AT91RM9200
  47. DRIVERFILES += at91rm9200.c
  48. endif
  49. if GW16012
  50. DRIVERFILES += gw16012.c
  51. endif
  52. if BITQ
  53. DRIVERFILES += bitq.c
  54. endif
  55. if PRESTO_DRIVER
  56. DRIVERFILES += presto.c
  57. endif
  58. if USBPROG
  59. DRIVERFILES += usbprog.c
  60. endif
  61. if JLINK
  62. DRIVERFILES += jlink.c
  63. endif
  64. if RLINK
  65. DRIVERFILES += rlink.c rlink_speed_table.c
  66. endif
  67. if ULINK
  68. DRIVERFILES += ulink.c
  69. nobase_dist_ocddata_DATA += $(ULINK_FIRMWARE)/ulink_firmware.hex
  70. endif
  71. if VSLLINK
  72. DRIVERFILES += versaloon/usbtoxxx/usbtogpio.c
  73. DRIVERFILES += versaloon/usbtoxxx/usbtojtagraw.c
  74. DRIVERFILES += versaloon/usbtoxxx/usbtoswd.c
  75. DRIVERFILES += versaloon/usbtoxxx/usbtopwr.c
  76. DRIVERFILES += versaloon/usbtoxxx/usbtoxxx.c
  77. DRIVERFILES += versaloon/versaloon.c
  78. DRIVERFILES += vsllink.c
  79. endif
  80. if ARMJTAGEW
  81. DRIVERFILES += arm-jtag-ew.c
  82. endif
  83. if BUSPIRATE
  84. DRIVERFILES += buspirate.c
  85. endif
  86. if REMOTE_BITBANG
  87. DRIVERFILES += remote_bitbang.c
  88. endif
  89. if STLINK
  90. DRIVERFILES += stlink_usb.c
  91. endif
  92. if OSBDM
  93. DRIVERFILES += osbdm.c
  94. endif
  95. if OPENDOUS
  96. DRIVERFILES += opendous.c
  97. endif
  98. noinst_HEADERS = \
  99. bitbang.h \
  100. bitq.h \
  101. ftd2xx_common.h \
  102. libusb0_common.h \
  103. libusb1_common.h \
  104. libusb_common.h \
  105. minidriver_imp.h \
  106. mpsse.h \
  107. rlink.h \
  108. rlink_dtc_cmd.h \
  109. rlink_ep1_cmd.h \
  110. rlink_st7.h \
  111. usb_common.h \
  112. versaloon/usbtoxxx/usbtoxxx.h \
  113. versaloon/usbtoxxx/usbtoxxx_internal.h \
  114. versaloon/versaloon.h \
  115. versaloon/versaloon_include.h \
  116. versaloon/versaloon_internal.h
  117. MAINTAINERCLEANFILES = $(srcdir)/Makefile.in