diff options
author | Wolfgang Denk <wd@denx.de> | 2008-08-10 01:04:50 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-08-10 01:04:50 +0200 |
commit | dedec4cfc88eeadac616d558f6104cbe2e0d46aa (patch) | |
tree | b8103b5f9230892f7ca39c17e0a1a4dbdfb24f16 /drivers/mtd | |
parent | 61c5b8c64da1f149cebe6d612500099454c8ef55 (diff) | |
parent | f77d92a3f56d88e63cc02226a1204b3bdbac6961 (diff) | |
download | u-boot-midas-dedec4cfc88eeadac616d558f6104cbe2e0d46aa.tar.gz u-boot-midas-dedec4cfc88eeadac616d558f6104cbe2e0d46aa.tar.bz2 u-boot-midas-dedec4cfc88eeadac616d558f6104cbe2e0d46aa.zip |
Merge branch 'master' of git://git.denx.de/u-boot-at91
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/dataflash.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c index 0ad48cdae9..049da69fec 100644 --- a/drivers/mtd/dataflash.c +++ b/drivers/mtd/dataflash.c @@ -56,7 +56,7 @@ int AT91F_DataflashInit (void) switch (dfcode) { case AT45DB021: dataflash_info[i].Device.pages_number = 1024; - dataflash_info[i].Device.pages_size = 263; + dataflash_info[i].Device.pages_size = 264; dataflash_info[i].Device.page_offset = 9; dataflash_info[i].Device.byte_mask = 0x300; dataflash_info[i].Device.cs = cs[i].cs; @@ -65,6 +65,19 @@ int AT91F_DataflashInit (void) dataflash_info[i].id = dfcode; found[i] += dfcode;; break; + + case AT45DB081: + dataflash_info[i].Device.pages_number = 4096; + dataflash_info[i].Device.pages_size = 264; + 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; |