diff options
author | Ulf Samuelsson <ulf@atmel.com> | 2008-04-12 20:29:44 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-18 00:24:05 -0700 |
commit | c3a60cb3bd67e120fc99b6ba88d9295c3c07f688 (patch) | |
tree | 5228c3ad76c8453b0a28fc81752b252c2e01e7e4 /include/dataflash.h | |
parent | 51ecde946fec511a16346e498204ca10ad71080d (diff) | |
download | bootable_bootloader_goldelico_gta04-c3a60cb3bd67e120fc99b6ba88d9295c3c07f688.zip bootable_bootloader_goldelico_gta04-c3a60cb3bd67e120fc99b6ba88d9295c3c07f688.tar.gz bootable_bootloader_goldelico_gta04-c3a60cb3bd67e120fc99b6ba88d9295c3c07f688.tar.bz2 |
Clean up dataflash partitioning
This patch removes the board dependent parts from
"drivers/mtd/dataflash.c".
Each board relying on this, will have the appropriate
code in a new file, "partition.c" in the board directory.
board Makefiles updated to use the file.
The dataflash partitions are aligned on sector/page boundaries.
The CONFIG_NEW_DF_PARTITION was used to create named partitions
This is now the default operation, and the CONFIG variable is removed.
Signed-off-by: Ulf Samuelsson <ulf@atmel.com>
Diffstat (limited to 'include/dataflash.h')
-rw-r--r-- | include/dataflash.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/dataflash.h b/include/dataflash.h index 68f0324..f20c738 100644 --- a/include/dataflash.h +++ b/include/dataflash.h @@ -130,7 +130,10 @@ typedef struct _AT91S_DATAFLASH_INFO { unsigned int id; /* device id */ } AT91S_DATAFLASH_INFO, *AT91PS_DATAFLASH_INFO; - +struct dataflash_addr { + unsigned long addr; + int cs; +}; /*-------------------------------------------------------------------------------------------------*/ #define AT45DB161 0x2c @@ -207,9 +210,9 @@ extern int read_dataflash (unsigned long addr, unsigned long size, char *result) extern int write_dataflash (unsigned long addr, unsigned long dest, unsigned long size); extern void dataflash_print_info (void); extern void dataflash_perror (int err); +extern void AT91F_DataflashSetEnv (void); -#ifdef CONFIG_NEW_DF_PARTITION -extern int AT91F_DataflashSetEnv (void); #endif -#endif - +extern struct dataflash_addr cs[CFG_MAX_DATAFLASH_BANKS]; +extern dataflash_protect_t area_list[NB_DATAFLASH_AREA]; +extern AT91S_DATAFLASH_INFO dataflash_info[]; #endif |