aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/core.h
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-05-05 09:32:43 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-05-05 15:24:25 +0200
commitf7e0f3c285e9b1578184da886792e02d253ea687 (patch)
treea7493d82be3551a20fa1664cdd5639880006c647 /src/flash/nor/core.h
parent3077f5845f197c5e21fc4ed917722297c74ef754 (diff)
flash: erase_address now has an unlock option
Quite useful to be able to unlock the flash, just like in the flash write_image cmd. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nor/core.h')
-rw-r--r--src/flash/nor/core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/flash/nor/core.h b/src/flash/nor/core.h
index 797cf686..b1526774 100644
--- a/src/flash/nor/core.h
+++ b/src/flash/nor/core.h
@@ -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