summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2009-02-10 09:53:29 +0100
committerStefan Roese <sr@denx.de>2009-02-11 17:01:17 +0100
commit4f975678de995b55749d5e84590c268972a7c835 (patch)
tree363ee422d2bd39277cc6e33f973004acf1652bbe /include/flash.h
parentae5d8f613cec1a6af7bf1fc9c42a3b856f021023 (diff)
cfi: make flash_get_info() non static
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>
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 02c6a043144..8b8979e2f79 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -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():