Add BCM2835 (as found in Raspberry Pi) interface driver
[openocd.git] / src / jtag / interfaces.c
1 /***************************************************************************
2 * Copyright (C) 2005 by Dominic Rath *
3 * Dominic.Rath@gmx.de *
4 * *
5 * Copyright (C) 2007,2008 √ėyvind Harboe *
6 * oyvind.harboe@zylin.com *
7 * *
8 * Copyright (C) 2009 SoftPLC Corporation *
9 * http://softplc.com *
10 * dick@softplc.com *
11 * *
12 * Copyright (C) 2009 Zachary T Welch *
13 * zw@superlucidity.net *
14 * *
15 * This program is free software; you can redistribute it and/or modify *
16 * it under the terms of the GNU General Public License as published by *
17 * the Free Software Foundation; either version 2 of the License, or *
18 * (at your option) any later version. *
19 * *
20 * This program is distributed in the hope that it will be useful, *
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
23 * GNU General Public License for more details. *
24 * *
25 * You should have received a copy of the GNU General Public License *
26 * along with this program; if not, write to the *
27 * Free Software Foundation, Inc., *
28 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
29 ***************************************************************************/
30
31 #ifdef HAVE_CONFIG_H
32 #include "config.h"
33 #endif
34
35 #include "interfaces.h"
36
37 /** @file
38 * This file includes declarations for all built-in jtag interfaces,
39 * which are then listed in the jtag_interfaces array.
40 *
41 * Dynamic loading can be implemented be searching for shared libraries
42 * that contain a jtag_interface structure that can added to this list.
43 */
44
45 #if BUILD_ZY1000 == 1
46 extern struct jtag_interface zy1000_interface;
47 #elif defined(BUILD_MINIDRIVER_DUMMY)
48 extern struct jtag_interface minidummy_interface;
49 #else /* standard drivers */
50 #if BUILD_PARPORT == 1
51 extern struct jtag_interface parport_interface;
52 #endif
53 #if BUILD_DUMMY == 1
54 extern struct jtag_interface dummy_interface;
55 #endif
56 #if BUILD_FT2232_FTD2XX == 1
57 extern struct jtag_interface ft2232_interface;
58 #endif
59 #if BUILD_FT2232_LIBFTDI == 1
60 extern struct jtag_interface ft2232_interface;
61 #endif
62 #if BUILD_FTDI == 1
63 extern struct jtag_interface ftdi_interface;
64 #endif
65 #if BUILD_USB_BLASTER_LIBFTDI == 1 || BUILD_USB_BLASTER_FTD2XX == 1
66 extern struct jtag_interface usb_blaster_interface;
67 #endif
68 #if BUILD_AMTJTAGACCEL == 1
69 extern struct jtag_interface amt_jtagaccel_interface;
70 #endif
71 #if BUILD_EP93XX == 1
72 extern struct jtag_interface ep93xx_interface;
73 #endif
74 #if BUILD_AT91RM9200 == 1
75 extern struct jtag_interface at91rm9200_interface;
76 #endif
77 #if BUILD_GW16012 == 1
78 extern struct jtag_interface gw16012_interface;
79 #endif
80 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
81 extern struct jtag_interface presto_interface;
82 #endif
83 #if BUILD_USBPROG == 1
84 extern struct jtag_interface usbprog_interface;
85 #endif
86 #if BUILD_OPENJTAG == 1
87 extern struct jtag_interface openjtag_interface;
88 #endif
89 #if BUILD_JLINK == 1
90 extern struct jtag_interface jlink_interface;
91 #endif
92 #if BUILD_VSLLINK == 1
93 extern struct jtag_interface vsllink_interface;
94 #endif
95 #if BUILD_RLINK == 1
96 extern struct jtag_interface rlink_interface;
97 #endif
98 #if BUILD_ULINK == 1
99 extern struct jtag_interface ulink_interface;
100 #endif
101 #if BUILD_ARMJTAGEW == 1
102 extern struct jtag_interface armjtagew_interface;
103 #endif
104 #if BUILD_BUSPIRATE == 1
105 extern struct jtag_interface buspirate_interface;
106 #endif
107 #if BUILD_REMOTE_BITBANG == 1
108 extern struct jtag_interface remote_bitbang_interface;
109 #endif
110 #if BUILD_HLADAPTER == 1
111 extern struct jtag_interface hl_interface;
112 #endif
113 #if BUILD_OSBDM == 1
114 extern struct jtag_interface osbdm_interface;
115 #endif
116 #if BUILD_OPENDOUS == 1
117 extern struct jtag_interface opendous_interface;
118 #endif
119 #if BUILD_SYSFSGPIO == 1
120 extern struct jtag_interface sysfsgpio_interface;
121 #endif
122 #if BUILD_AICE == 1
123 extern struct jtag_interface aice_interface;
124 #endif
125 #if BUILD_BCM2835GPIO == 1
126 extern struct jtag_interface bcm2835gpio_interface;
127 #endif
128 #endif /* standard drivers */
129
130 /**
131 * The list of built-in JTAG interfaces, containing entries for those
132 * drivers that were enabled by the @c configure script.
133 *
134 * The list should be defined to contain either one minidriver interface
135 * or some number of standard driver interfaces, never both.
136 */
137 struct jtag_interface *jtag_interfaces[] = {
138 #if BUILD_ZY1000 == 1
139 &zy1000_interface,
140 #elif defined(BUILD_MINIDRIVER_DUMMY)
141 &minidummy_interface,
142 #else /* standard drivers */
143 #if BUILD_PARPORT == 1
144 &parport_interface,
145 #endif
146 #if BUILD_DUMMY == 1
147 &dummy_interface,
148 #endif
149 #if BUILD_FT2232_FTD2XX == 1
150 &ft2232_interface,
151 #endif
152 #if BUILD_FT2232_LIBFTDI == 1
153 &ft2232_interface,
154 #endif
155 #if BUILD_FTDI == 1
156 &ftdi_interface,
157 #endif
158 #if BUILD_USB_BLASTER_LIBFTDI == 1 || BUILD_USB_BLASTER_FTD2XX == 1
159 &usb_blaster_interface,
160 #endif
161 #if BUILD_AMTJTAGACCEL == 1
162 &amt_jtagaccel_interface,
163 #endif
164 #if BUILD_EP93XX == 1
165 &ep93xx_interface,
166 #endif
167 #if BUILD_AT91RM9200 == 1
168 &at91rm9200_interface,
169 #endif
170 #if BUILD_GW16012 == 1
171 &gw16012_interface,
172 #endif
173 #if BUILD_PRESTO_LIBFTDI == 1 || BUILD_PRESTO_FTD2XX == 1
174 &presto_interface,
175 #endif
176 #if BUILD_USBPROG == 1
177 &usbprog_interface,
178 #endif
179 #if BUILD_OPENJTAG == 1
180 &openjtag_interface,
181 #endif
182 #if BUILD_JLINK == 1
183 &jlink_interface,
184 #endif
185 #if BUILD_VSLLINK == 1
186 &vsllink_interface,
187 #endif
188 #if BUILD_RLINK == 1
189 &rlink_interface,
190 #endif
191 #if BUILD_ULINK == 1
192 &ulink_interface,
193 #endif
194 #if BUILD_ARMJTAGEW == 1
195 &armjtagew_interface,
196 #endif
197 #if BUILD_BUSPIRATE == 1
198 &buspirate_interface,
199 #endif
200 #if BUILD_REMOTE_BITBANG == 1
201 &remote_bitbang_interface,
202 #endif
203 #if BUILD_HLADAPTER == 1
204 &hl_interface,
205 #endif
206 #if BUILD_OSBDM == 1
207 &osbdm_interface,
208 #endif
209 #if BUILD_OPENDOUS == 1
210 &opendous_interface,
211 #endif
212 #if BUILD_SYSFSGPIO == 1
213 &sysfsgpio_interface,
214 #endif
215 #if BUILD_AICE == 1
216 &aice_interface,
217 #endif
218 #if BUILD_BCM2835GPIO == 1
219 &bcm2835gpio_interface,
220 #endif
221 #endif /* standard drivers */
222 NULL,
223 };
224
225 void jtag_interface_modules_load(const char *path)
226 {
227 /* @todo: implement dynamic module loading for JTAG interface drivers */
228 }

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)