]> git.sur5r.net Git - u-boot/commitdiff
add AM29F400BB to table of supported legacy flashs
authorDavid Müller <d.mueller@elsoft.ch>
Tue, 21 Dec 2010 09:09:56 +0000 (10:09 +0100)
committerStefan Roese <sr@denx.de>
Tue, 11 Jan 2011 09:43:31 +0000 (10:43 +0100)
Signed-off-by: David Mueller <d.mueller@elsoft.ch>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/jedec_flash.c

index 223fb71145365fbf149d44430eaf53e36cc8a051..da8c9b15b73879f92bab0091ecaf52bc48e09733 100644 (file)
@@ -41,6 +41,7 @@
 #define AM29DL800BB    0x22CB
 #define AM29DL800BT    0x224A
 
+#define AM29F400BB     0x22AB
 #define AM29F800BB     0x2258
 #define AM29F800BT     0x22D6
 #define AM29LV400BB    0x22BA
@@ -294,6 +295,23 @@ static const struct amd_flash_info jedec_table[] = {
        },
 #endif
 #ifdef CONFIG_SYS_FLASH_LEGACY_512Kx16
+       {
+               .mfr_id         = (u16)AMD_MANUFACT,
+               .dev_id         = AM29F400BB,
+               .name           = "AMD AM29F400BB",
+               .uaddr          = {
+                       [1] = MTD_UADDR_0x0555_0x02AA /* x16 */
+               },
+               .DevSize        = SIZE_512KiB,
+               .CmdSet         = CFI_CMDSET_AMD_LEGACY,
+               .NumEraseRegions= 4,
+               .regions        = {
+                       ERASEINFO(0x04000, 1),
+                       ERASEINFO(0x02000, 2),
+                       ERASEINFO(0x08000, 1),
+                       ERASEINFO(0x10000, 7),
+               }
+       },
        {
                .mfr_id         = (u16)AMD_MANUFACT,
                .dev_id         = AM29LV400BB,