summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2011-04-04 08:10:21 +0200
committerStefan Roese <sr@denx.de>2011-04-07 10:20:22 +0200
commit6ee1416e8184b4d9ebe6087d396a60bcecf3551c (patch)
treea110bf71d130969b8cdeebff2839f1e036f66f3c /include
parent2c9f48af7315ab7eeba739bec37256b246c64819 (diff)
downloadu-boot-imx-6ee1416e8184b4d9ebe6087d396a60bcecf3551c.zip
u-boot-imx-6ee1416e8184b4d9ebe6087d396a60bcecf3551c.tar.gz
u-boot-imx-6ee1416e8184b4d9ebe6087d396a60bcecf3551c.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/flash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index 1b6821a..0ca70d9 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -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);