mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
e83cc06375
commit
3f0cf51dab
@@ -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);
|
||||
|
Reference in New Issue
Block a user