]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/drivers.c
FLASH/NOR: rename from spearsmi to stmsmi
[openocd] / src / flash / nor / drivers.c
index be72b5c30892396ac803e292d6e0192a4fb2c046..a1a60b10bde97a48e3463a91a47d99ba2cf6ab11 100644 (file)
@@ -19,7 +19,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#include <flash/nor/core.h>
+#include "imp.h"
 
 extern struct flash_driver lpc2000_flash;
 extern struct flash_driver lpc288x_flash;
@@ -39,12 +39,14 @@ extern struct flash_driver ocl_flash;
 extern struct flash_driver pic32mx_flash;
 extern struct flash_driver avr_flash;
 extern struct flash_driver faux_flash;
+extern struct flash_driver virtual_flash;
+extern struct flash_driver stmsmi_flash;
 
 /**
  * The list of built-in flash drivers.
  * @todo Make this dynamically extendable with loadable modules.
  */
-struct flash_driver *flash_drivers[] = {
+static struct flash_driver *flash_drivers[] = {
        &lpc2000_flash,
        &lpc288x_flash,
        &lpc2900_flash,
@@ -63,6 +65,8 @@ struct flash_driver *flash_drivers[] = {
        &pic32mx_flash,
        &avr_flash,
        &faux_flash,
+       &virtual_flash,
+       &stmsmi_flash,
        NULL,
 };