summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2008-10-01 15:26:27 +0200
committerWolfgang Denk <wd@denx.de>2008-10-18 21:54:00 +0200
commit3f0cf51dabacc2724731c5079a60ea989103bb8f (patch)
tree4dc6613e45d329ac3c307aa60c6886008e3c1bfb /include/flash.h
parente83cc06375ac2bea0830c6ed0f9d8fdc3c1b27d5 (diff)
flash: factor out adjusting of Flash address to the end of sector
The upcoming automatic update feature needs the ability to adjust an address within Flash to the end of its respective sector. Factor out this functionality to a new function flash_sect_roundb(). Signed-off-by: Rafal Czubak <rcz@semihalf.com> Signed-off-by: Bartlomiej Sieka <tur@semihalf.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index af8a7c08838..6f5d7d53254 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -91,6 +91,7 @@ extern void flash_print_info (flash_info_t *);
extern int flash_erase (flash_info_t *, int, int);
extern int flash_sect_erase (ulong addr_first, ulong addr_last);
extern int flash_sect_protect (int flag, ulong addr_first, ulong addr_last);
+extern int flash_sect_roundb (ulong *addr);
/* common/flash.c */
extern void flash_protect (int flag, ulong from, ulong to, flash_info_t *info);