summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
authorPiotr Ziecik <kosmo@semihalf.com>2008-11-20 15:17:38 +0100
committerStefan Roese <sr@denx.de>2008-11-24 10:55:35 +0100
commitebc9784ce6528385bb8d2558e783622d4bbf20f8 (patch)
tree9d3461ea9c84c6a6b80e662805a9bfd393d0e93a /include/flash.h
parent45aa5a7f4d5bcb79927ddfc896c1d7c4326e235d (diff)
downloadu-boot-ebc9784ce6528385bb8d2558e783622d4bbf20f8.tar.gz
u-boot-ebc9784ce6528385bb8d2558e783622d4bbf20f8.tar.bz2
u-boot-ebc9784ce6528385bb8d2558e783622d4bbf20f8.zip
cfi_flash: Export flash_sector_size() function.
Export flash_sector_size() function from drivers/mtd/cfi_flash.c, so that it can be used in the upcoming cfi-mtd driver. Signed-off-by: Piotr Ziecik <kosmo@semihalf.com> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index a6e91b5e69..8a00c2f899 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -58,6 +58,8 @@ typedef struct {
#endif
} flash_info_t;
+typedef unsigned long flash_sect_t;
+
/*
* Values for the width of the port
*/
@@ -92,6 +94,7 @@ 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);
+extern unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect);
/* common/flash.c */
extern void flash_protect (int flag, ulong from, ulong to, flash_info_t *info);