[U-Boot] [PATCH] flash: Export flash_sector_size() function.
Piotr Ziecik
kosmo at semihalf.com
Mon Nov 17 15:49:20 CET 2008
Export flash_sector_size() function from drivers/mtd/cfi_flash.c.
Signed-off-by: Piotr Ziecik <kosmo at semihalf.com>
---
drivers/mtd/cfi_flash.c | 2 --
include/flash.h | 3 +++
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index c40bf66..4202af4 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -175,8 +175,6 @@ flash_info_t flash_info[CFI_MAX_FLASH_BANKS]; /* FLASH chips info */
#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT
#endif
-typedef unsigned long flash_sect_t;
-
/* CFI standard query structure */
struct cfi_qry {
u8 qry[3];
diff --git a/include/flash.h b/include/flash.h
index a6e91b5..8a00c2f 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);
--
1.5.6.1
More information about the U-Boot
mailing list