[U-Boot] [PATCH 1/2] add ST PSD4256G6V to table of supported legacy flashs

Mike Frysinger vapier at gentoo.org
Tue Jul 31 09:38:32 CEST 2012


The BF533-EZKIT boards have this old ST flash.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 drivers/mtd/jedec_flash.c |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c
index 2350f36..b6cb037 100644
--- a/drivers/mtd/jedec_flash.c
+++ b/drivers/mtd/jedec_flash.c
@@ -30,6 +30,7 @@
 /*#define DEBUG*/
 
 #include <common.h>
+#include <mtd/cfi_flash.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/byteorder.h>
@@ -58,6 +59,9 @@
 #define AM29F032B	0x0041
 #define AM29F002T	0x00B0
 
+/* ST - www.st.com */
+#define PSD4256G6V	0x00e9
+
 /* SST */
 #define SST39LF800	0x2781
 #define SST39LF160	0x2782
@@ -367,6 +371,22 @@ static const struct amd_flash_info jedec_table[] = {
 		}
 	},
 #endif
+#ifdef CONFIG_SYS_FLASH_LEGACY_1Mx16
+	{
+		.mfr_id		= (u16)STM_MANUFACT,
+		.dev_id		= 0xff00 | PSD4256G6V,
+		.name		= "ST PSD4256G6V",
+		.uaddr		= {
+			[1] = MTD_UADDR_0x0555_0x0AAA /* x16 */
+		},
+		.DevSize		= SIZE_1MiB,
+		.CmdSet			= CFI_CMDSET_AMD_STANDARD,
+		.NumEraseRegions	= 4,
+		.regions		= {
+			ERASEINFO(0x10000, 16),
+		}
+	},
+#endif
 };
 
 static inline void fill_info(flash_info_t *info, const struct amd_flash_info *jedec_entry, ulong base)
-- 
1.7.9.7



More information about the U-Boot mailing list