flash: fix FC_FLEX_RAM class code path
[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, write to the *
16 * Free Software Foundation, Inc., *
17 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
18 ***************************************************************************/
19
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
23 #include "imp.h"
24
25 extern struct flash_driver lpc2000_flash;
26 extern struct flash_driver lpc288x_flash;
27 extern struct flash_driver lpc2900_flash;
28 extern struct flash_driver cfi_flash;
29 extern struct flash_driver at91sam3_flash;
30 extern struct flash_driver at91sam4_flash;
31 extern struct flash_driver at91sam7_flash;
32 extern struct flash_driver str7x_flash;
33 extern struct flash_driver str9x_flash;
34 extern struct flash_driver aduc702x_flash;
35 extern struct flash_driver stellaris_flash;
36 extern struct flash_driver str9xpec_flash;
37 extern struct flash_driver stm32f1x_flash;
38 extern struct flash_driver stm32f2x_flash;
39 extern struct flash_driver stm32lx_flash;
40 extern struct flash_driver tms470_flash;
41 extern struct flash_driver ocl_flash;
42 extern struct flash_driver pic32mx_flash;
43 extern struct flash_driver avr_flash;
44 extern struct flash_driver faux_flash;
45 extern struct flash_driver virtual_flash;
46 extern struct flash_driver stmsmi_flash;
47 extern struct flash_driver em357_flash;
48 extern struct flash_driver dsp5680xx_flash;
49 extern struct flash_driver fm3_flash;
50 extern struct flash_driver kinetis_flash;
51
52 /**
53 * The list of built-in flash drivers.
54 * @todo Make this dynamically extendable with loadable modules.
55 */
56 static struct flash_driver *flash_drivers[] = {
57 &lpc2000_flash,
58 &lpc288x_flash,
59 &lpc2900_flash,
60 &cfi_flash,
61 &at91sam7_flash,
62 &at91sam3_flash,
63 &at91sam4_flash,
64 &str7x_flash,
65 &str9x_flash,
66 &aduc702x_flash,
67 &stellaris_flash,
68 &str9xpec_flash,
69 &stm32f1x_flash,
70 &stm32f2x_flash,
71 &stm32lx_flash,
72 &tms470_flash,
73 &ocl_flash,
74 &pic32mx_flash,
75 &avr_flash,
76 &faux_flash,
77 &virtual_flash,
78 &stmsmi_flash,
79 &em357_flash,
80 &fm3_flash,
81 &dsp5680xx_flash,
82 &kinetis_flash,
83 NULL,
84 };
85
86 struct flash_driver *flash_driver_find_by_name(const char *name)
87 {
88 for (unsigned i = 0; flash_drivers[i]; i++) {
89 if (strcmp(name, flash_drivers[i]->name) == 0)
90 return flash_drivers[i];
91 }
92 return NULL;
93 }

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)