mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
mtd, cfi: introduce void flash_protect_default(void)
collect code which protects default sectors in a function, called flash_protect_default. So boardspecific code can call it too. Signed-off-by: Heiko Schocher <hs@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
2c9f48af73
commit
6ee1416e81
2 changed files with 42 additions and 36 deletions
|
@ -92,6 +92,7 @@ typedef unsigned long flash_sect_t;
|
|||
/* Prototypes */
|
||||
|
||||
extern unsigned long flash_init (void);
|
||||
extern void flash_protect_default(void);
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue