Re: [U-Boot] [PATCH] add STM29F400BB to table of supported legacy flashs

2012-02-09 Thread Stefan Roese
On Monday 06 February 2012 09:42:54 David Müller (ELSOFT AG) wrote:
 Signed-off-by: David Mueller d.muel...@elsoft.ch

Applied to u-boot-cfi-flash. Thanks.

Best regards,
Stefan

--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] add STM29F400BB to table of supported legacy flashs

2012-02-06 Thread David Müller (ELSOFT AG)
Signed-off-by: David Mueller d.muel...@elsoft.ch

diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
index 36d30c3..2350f36 100644
--- a/drivers/mtd/jedec_flash.c
+++ b/drivers/mtd/jedec_flash.c
@@ -69,6 +69,9 @@
 #define SST39SF010A0x00B5
 #define SST39SF020A0x00B6

+/* STM */
+#define STM29F400BB0x00D6
+
 /* MXIC */
 #define MX29LV040  0x004F

@@ -346,6 +349,23 @@ static const struct amd_flash_info jedec_table[] = {
ERASEINFO(0x1, 15),
}
},
+   {
+   .mfr_id = (u16)STM_MANUFACT,
+   .dev_id = STM29F400BB,
+   .name   = ST Micro M29F400BB,
+   .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(0x1, 7),
+   }
+   },
 #endif
 };

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot