diff options
author | Justin Waters <justin@justin-linux.(none)> | 2008-01-21 13:46:21 -0500 |
---|---|---|
committer | Justin Waters <justin@justin-linux.(none)> | 2008-01-21 13:46:21 -0500 |
commit | 037af3481edfb2b7a3fbed1dffd277df25f677b9 (patch) | |
tree | 2c39b8891b4494298b7ee447c480645d96e13bdb /include/dataflash.h | |
parent | ba999c531ed16ec749b2b6f4b0133cee38842b91 (diff) |
Add Atmel AT91 patch version 1.5
This patch adds support for the following boards:
AT91RM9200-EK
AT91SAM9260-EK
AT91SAM9261-EK
AT91SAM9263-EK
AT91SAM9RL-EK
It was downloaded from http://www.linux4sam.org/twiki/pub/Linux4SAM/U-Boot/u-boot-1.1.5_atmel_1.5.diff.bz2
Signed-off-by: Justin Waters <justin.waters@timesys.com>
Diffstat (limited to 'include/dataflash.h')
-rw-r--r-- | include/dataflash.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/dataflash.h b/include/dataflash.h index 650454e7ee5..bd92ccd7bd2 100644 --- a/include/dataflash.h +++ b/include/dataflash.h @@ -40,6 +40,29 @@ /*number of protected area*/ #define NB_DATAFLASH_AREA 4 +#ifdef CFG_NO_FLASH + +/*----------------------------------------------------------------------- + * return codes from flash_write(): + */ +#define ERR_OK 0 +#define ERR_TIMOUT 1 +#define ERR_NOT_ERASED 2 +#define ERR_PROTECTED 4 +#define ERR_INVAL 8 +#define ERR_ALIGN 16 +#define ERR_UNKNOWN_FLASH_VENDOR 32 +#define ERR_UNKNOWN_FLASH_TYPE 64 +#define ERR_PROG_ERROR 128 + +/*----------------------------------------------------------------------- + * Protection Flags for flash_protect(): + */ +#define FLAG_PROTECT_SET 0x01 +#define FLAG_PROTECT_CLEAR 0x02 + +#endif /* CFG_NO_FLASH */ + /*define the area structure*/ typedef struct { unsigned long start; |