summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flash/nand/imp.h2
-rw-r--r--src/flash/nand/tcl.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/flash/nand/imp.h b/src/flash/nand/imp.h
index e0d411fa..e6c9c5ff 100644
--- a/src/flash/nand/imp.h
+++ b/src/flash/nand/imp.h
@@ -22,6 +22,8 @@
#include "core.h"
#include "driver.h"
+void nand_device_add(struct nand_device *c);
+
int nand_write_page(struct nand_device *nand,
uint32_t page, uint8_t *data, uint32_t data_size,
uint8_t *oob, uint32_t oob_size);
diff --git a/src/flash/nand/tcl.c b/src/flash/nand/tcl.c
index e69882bb..ad77d7ca 100644
--- a/src/flash/nand/tcl.c
+++ b/src/flash/nand/tcl.c
@@ -580,6 +580,8 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name,
return ERROR_OK;
}
+ nand_device_add(c);
+
return ERROR_OK;
}