X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fdataflash.h;h=96ac0975a63d037cf8426bea853ebe4458ce3578;hb=10d1a160f5e28b05f891c050ca2f23855b226f5f;hp=f20c738686f387b67f7c1bebe2d3fd8dc12a6129;hpb=4b7a6dd89633d60dc4b58476d5ce48247f82a3ca;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/dataflash.h b/include/dataflash.h index f20c738..96ac097 100644 --- a/include/dataflash.h +++ b/include/dataflash.h @@ -34,13 +34,12 @@ #define _DataFlash_h -#include #include "config.h" /*number of protected area*/ #define NB_DATAFLASH_AREA 5 -#ifdef CFG_NO_FLASH +#ifdef CONFIG_SYS_NO_FLASH /*----------------------------------------------------------------------- * return codes from flash_write(): @@ -66,7 +65,7 @@ * Set Environment according to label: */ # define FLAG_SETENV 0x80 -#endif /* CFG_NO_FLASH */ +#endif /* CONFIG_SYS_NO_FLASH */ /*define the area structure*/ typedef struct { @@ -135,8 +134,9 @@ struct dataflash_addr { int cs; }; /*-------------------------------------------------------------------------------------------------*/ - #define AT45DB161 0x2c +#define AT45DB021 0x14 +#define AT45DB081 0x24 #define AT45DB321 0x34 #define AT45DB642 0x3c #define AT45DB128 0x10 @@ -212,7 +212,7 @@ extern void dataflash_print_info (void); extern void dataflash_perror (int err); extern void AT91F_DataflashSetEnv (void); -extern struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS]; +extern struct dataflash_addr cs[CONFIG_SYS_MAX_DATAFLASH_BANKS]; extern dataflash_protect_t area_list[NB_DATAFLASH_AREA]; extern AT91S_DATAFLASH_INFO dataflash_info[]; #endif