diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-13 14:40:30 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-13 14:40:30 +0200 |
commit | a07351fdbad1a92746d75a195eaef25d146c7f87 (patch) | |
tree | d88915ef5598e2859558d65df8a07922374bfb75 /drivers | |
parent | bde63587622c4b830a27d1ddf7265843de9e994f (diff) | |
parent | fdd70d1921b87287d9a99d1be99bc35226c2b412 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-at91
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/dataflash.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c index 8247aa03b5..a092dc634f 100644 --- a/drivers/mtd/dataflash.c +++ b/drivers/mtd/dataflash.c @@ -54,6 +54,17 @@ int AT91F_DataflashInit (void) &dataflash_info[i].Desc); switch (dfcode) { + case AT45DB021: + dataflash_info[i].Device.pages_number = 1024; + dataflash_info[i].Device.pages_size = 263; + dataflash_info[i].Device.page_offset = 9; + dataflash_info[i].Device.byte_mask = 0x300; + dataflash_info[i].Device.cs = cs[i].cs; + dataflash_info[i].Desc.DataFlash_state = IDLE; + dataflash_info[i].logical_address = cs[i].addr; + dataflash_info[i].id = dfcode; + found[i] += dfcode;; + break; case AT45DB161: dataflash_info[i].Device.pages_number = 4096; dataflash_info[i].Device.pages_size = 528; @@ -178,6 +189,9 @@ void dataflash_print_info (void) if (dataflash_info[i].id != 0) { printf("DataFlash:"); switch (dataflash_info[i].id) { + case AT45DB021: + printf("AT45DB021\n"); + break; case AT45DB161: printf("AT45DB161\n"); break; |