X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fflash.h;h=b016162009fa244ab9f1250b8b9309c0976b48a2;hb=8dd29c87ba370072a8464b8cc19e0a1e6e0497b4;hp=02c6a043144dd70c57682aa054a12fb7096077dc;hpb=09ce9921a7d8b1ce764656b14b42217bbf4faa38;p=u-boot diff --git a/include/flash.h b/include/flash.h index 02c6a04314..b016162009 100644 --- a/include/flash.h +++ b/include/flash.h @@ -87,8 +87,6 @@ typedef unsigned long flash_sect_t; /* convert between bit value and numeric value */ #define CFI_FLASH_SHIFT_WIDTH 3 -/* cfi-mtd device name */ -#define CFI_MTD_DEV_NAME "cfi-mtd" /* Prototypes */ extern unsigned long flash_init (void); @@ -124,6 +122,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():