From 3f0cf51dabacc2724731c5079a60ea989103bb8f Mon Sep 17 00:00:00 2001 From: Bartlomiej Sieka Date: Wed, 1 Oct 2008 15:26:27 +0200 Subject: 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 Signed-off-by: Bartlomiej Sieka Signed-off-by: Stefan Roese --- include/flash.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/flash.h') diff --git a/include/flash.h b/include/flash.h index af8a7c088..6f5d7d532 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); -- cgit v1.2.3