All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] add ST PSD4256G6V to table of supported legacy flashs
Date: Tue, 31 Jul 2012 03:38:32 -0400	[thread overview]
Message-ID: <1343720312-31716-1-git-send-email-vapier@gentoo.org> (raw)

The BF533-EZKIT boards have this old ST flash.

Signed-off-by: Mike Frysinger <vapier@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

             reply	other threads:[~2012-07-31  7:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31  7:38 Mike Frysinger [this message]
2012-07-31  7:40 ` [U-Boot] [PATCH 2/2] Blackfin: bf533-ezkit: convert to CFI flash driver Mike Frysinger
2012-07-31  8:50 ` [U-Boot] [PATCH 1/2] add ST PSD4256G6V to table of supported legacy flashs Stefan Roese
2012-07-31 13:36   ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343720312-31716-1-git-send-email-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.