nand: when verify failed, it didn't return an error
[fw/openocd] / src / flash / nand / nonce.c
index dae62a72d08af927b2f814979ee0befa45226fb0..ab490aeab2e2f83053efffcb84a93c023768275d 100644 (file)
@@ -20,7 +20,9 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
-#include "nand.h"
+
+#include "imp.h"
+#include "hello.h"
 
 
 static int nonce_nand_command(struct nand_device *nand, uint8_t command)
@@ -68,6 +70,7 @@ static int nonce_nand_init(struct nand_device *nand)
 struct nand_flash_controller nonce_nand_controller =
 {
        .name                   = "nonce",
+       .commands               = hello_command_handlers,
        .nand_device_command    = &nonce_nand_device_command,
        .init                   = &nonce_nand_init,
        .reset                  = &nonce_nand_reset,