]> git.sur5r.net Git - u-boot/commitdiff
cfi: make flash_get_info() non static
authorHeiko Schocher <hs@denx.de>
Tue, 10 Feb 2009 08:53:29 +0000 (09:53 +0100)
committerStefan Roese <sr@denx.de>
Wed, 11 Feb 2009 16:01:17 +0000 (17:01 +0100)
If on your board is more than one flash, you must know
the size of every single flash, for example, for updating
the DTS before booting Linux. So make this function
flash_get_info() extern, and you can have all info
about your flashes.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c
include/flash.h

index 04a9a925868f5f5ad9eca2c6a91654b836826ac4..a66feac14f5cf121721dd8fb45b418479855386a 100644 (file)
@@ -273,7 +273,7 @@ u64 flash_read64(void *addr)__attribute__((weak, alias("__flash_read64")));
 /*-----------------------------------------------------------------------
  */
 #if defined(CONFIG_ENV_IS_IN_FLASH) || defined(CONFIG_ENV_ADDR_REDUND) || (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE)
-static flash_info_t *flash_get_info(ulong base)
+flash_info_t *flash_get_info(ulong base)
 {
        int i;
        flash_info_t * info = 0;
index 02c6a043144dd70c57682aa054a12fb7096077dc..8b8979e2f793d397bf0bc66765aaa0f3a3969a8c 100644 (file)
@@ -124,6 +124,9 @@ extern int jedec_flash_match(flash_info_t *info, ulong base);
 #define CFI_CMDSET_AMD_LEGACY          0xFFF0
 #endif
 
+#if defined(CONFIG_SYS_FLASH_CFI)
+extern flash_info_t *flash_get_info(ulong base);
+#endif
 
 /*-----------------------------------------------------------------------
  * return codes from flash_write():