jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / src / flash / nor / drivers.c
1 /***************************************************************************
2 * Copyright (C) 2009 Zachary T Welch <zw@superlucidity.net> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
16 ***************************************************************************/
17
18 #ifdef HAVE_CONFIG_H
19 #include "config.h"
20 #endif
21 #include "imp.h"
22
23 extern const struct flash_driver aduc702x_flash;
24 extern const struct flash_driver aducm360_flash;
25 extern const struct flash_driver ambiqmicro_flash;
26 extern const struct flash_driver at91sam3_flash;
27 extern const struct flash_driver at91sam4_flash;
28 extern const struct flash_driver at91sam4l_flash;
29 extern const struct flash_driver at91sam7_flash;
30 extern const struct flash_driver at91samd_flash;
31 extern const struct flash_driver ath79_flash;
32 extern const struct flash_driver atsame5_flash;
33 extern const struct flash_driver atsamv_flash;
34 extern const struct flash_driver avr_flash;
35 extern const struct flash_driver bluenrgx_flash;
36 extern const struct flash_driver cc3220sf_flash;
37 extern const struct flash_driver cc26xx_flash;
38 extern const struct flash_driver cfi_flash;
39 extern const struct flash_driver dsp5680xx_flash;
40 extern const struct flash_driver efm32_flash;
41 extern const struct flash_driver em357_flash;
42 extern const struct flash_driver esirisc_flash;
43 extern const struct flash_driver faux_flash;
44 extern const struct flash_driver fm3_flash;
45 extern const struct flash_driver fm4_flash;
46 extern const struct flash_driver fespi_flash;
47 extern const struct flash_driver jtagspi_flash;
48 extern const struct flash_driver kinetis_flash;
49 extern const struct flash_driver kinetis_ke_flash;
50 extern const struct flash_driver lpc2000_flash;
51 extern const struct flash_driver lpc288x_flash;
52 extern const struct flash_driver lpc2900_flash;
53 extern const struct flash_driver lpcspifi_flash;
54 extern const struct flash_driver max32xxx_flash;
55 extern const struct flash_driver mdr_flash;
56 extern const struct flash_driver mrvlqspi_flash;
57 extern const struct flash_driver msp432_flash;
58 extern const struct flash_driver niietcm4_flash;
59 extern const struct flash_driver nrf5_flash;
60 extern const struct flash_driver nrf51_flash;
61 extern const struct flash_driver numicro_flash;
62 extern const struct flash_driver ocl_flash;
63 extern const struct flash_driver pic32mx_flash;
64 extern const struct flash_driver psoc4_flash;
65 extern const struct flash_driver psoc5lp_flash;
66 extern const struct flash_driver psoc5lp_eeprom_flash;
67 extern const struct flash_driver psoc5lp_nvl_flash;
68 extern const struct flash_driver psoc6_flash;
69 extern const struct flash_driver sim3x_flash;
70 extern const struct flash_driver stellaris_flash;
71 extern const struct flash_driver stm32f1x_flash;
72 extern const struct flash_driver stm32f2x_flash;
73 extern const struct flash_driver stm32lx_flash;
74 extern const struct flash_driver stm32l4x_flash;
75 extern const struct flash_driver stm32h7x_flash;
76 extern const struct flash_driver stmsmi_flash;
77 extern const struct flash_driver str7x_flash;
78 extern const struct flash_driver str9x_flash;
79 extern const struct flash_driver str9xpec_flash;
80 extern const struct flash_driver swm050_flash;
81 extern const struct flash_driver tms470_flash;
82 extern const struct flash_driver virtual_flash;
83 extern const struct flash_driver w600_flash;
84 extern const struct flash_driver xcf_flash;
85 extern const struct flash_driver xmc1xxx_flash;
86 extern const struct flash_driver xmc4xxx_flash;
87
88 /**
89 * The list of built-in flash drivers.
90 * @todo Make this dynamically extendable with loadable modules.
91 */
92 static const struct flash_driver * const flash_drivers[] = {
93 &aduc702x_flash,
94 &aducm360_flash,
95 &ambiqmicro_flash,
96 &at91sam3_flash,
97 &at91sam4_flash,
98 &at91sam4l_flash,
99 &at91sam7_flash,
100 &at91samd_flash,
101 &ath79_flash,
102 &atsame5_flash,
103 &atsamv_flash,
104 &avr_flash,
105 &bluenrgx_flash,
106 &cc3220sf_flash,
107 &cc26xx_flash,
108 &cfi_flash,
109 &dsp5680xx_flash,
110 &efm32_flash,
111 &em357_flash,
112 &esirisc_flash,
113 &faux_flash,
114 &fm3_flash,
115 &fm4_flash,
116 &fespi_flash,
117 &jtagspi_flash,
118 &kinetis_flash,
119 &kinetis_ke_flash,
120 &lpc2000_flash,
121 &lpc288x_flash,
122 &lpc2900_flash,
123 &lpcspifi_flash,
124 &max32xxx_flash,
125 &mdr_flash,
126 &mrvlqspi_flash,
127 &msp432_flash,
128 &niietcm4_flash,
129 &nrf5_flash,
130 &nrf51_flash,
131 &numicro_flash,
132 &ocl_flash,
133 &pic32mx_flash,
134 &psoc4_flash,
135 &psoc5lp_flash,
136 &psoc5lp_eeprom_flash,
137 &psoc5lp_nvl_flash,
138 &psoc6_flash,
139 &sim3x_flash,
140 &stellaris_flash,
141 &stm32f1x_flash,
142 &stm32f2x_flash,
143 &stm32lx_flash,
144 &stm32l4x_flash,
145 &stm32h7x_flash,
146 &stmsmi_flash,
147 &str7x_flash,
148 &str9x_flash,
149 &str9xpec_flash,
150 &swm050_flash,
151 &tms470_flash,
152 &virtual_flash,
153 &xcf_flash,
154 &xmc1xxx_flash,
155 &xmc4xxx_flash,
156 &w600_flash,
157 NULL,
158 };
159
160 const struct flash_driver *flash_driver_find_by_name(const char *name)
161 {
162 for (unsigned i = 0; flash_drivers[i]; i++) {
163 if (strcmp(name, flash_drivers[i]->name) == 0)
164 return flash_drivers[i];
165 }
166 return NULL;
167 }

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)