]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cfi_flash: Export flash_sector_size() function.
authorPiotr Ziecik <kosmo@semihalf.com>
Thu, 20 Nov 2008 14:17:38 +0000 (15:17 +0100)
committerStefan Roese <sr@denx.de>
Mon, 24 Nov 2008 09:55:35 +0000 (10:55 +0100)
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>
drivers/mtd/cfi_flash.c
include/flash.h

index f10d5fea18f0a13baac8b9ac7fb6a9817d9ba24b..37af62742e0a3239ad9b3f5437d2f25227652433 100644 (file)
@@ -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];
index a6e91b5e69fb1a8fc8711ea1afdcab7a9d86f529..8a00c2f8998c2a2281617b0ea33ea4b4eda78d3d 100644 (file)
@@ -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);