flash: erase_address now has an unlock option
[fw/openocd] / src / flash / nor / core.h
index 797cf68681aea87890f570a1aeb46f0e67fe02e7..b152677447912006f83b0b2f8896e2d8f8c49ae8 100644 (file)
@@ -108,6 +108,9 @@ int flash_register_commands(struct command_context *cmd_ctx);
 int flash_erase_address_range(struct target *target,
                bool pad, uint32_t addr, uint32_t length);
 
+int flash_unlock_address_range(struct target *target, uint32_t addr,
+               uint32_t length);
+
 /**
  * Writes @a image into the @a target flash.  The @a written parameter
  * will contain the