Patchwork New flash chip, CAT28F512

login
register
about
Submitter Andrew Morgan
Date 2011-08-31 00:53:07
Message ID <4E5D85F3.7070509@ziltro.com>
Download mbox | patch
Permalink /patch/3397/
State Accepted
Commit r1439
Headers show

Comments

Andrew Morgan - 2011-08-31 00:53:07
On 30/08/11 23:25, Stefan Tauner wrote:
> btw patch_es_: please post one per mail in the future, because
> patchwork seems to be too dumb to recognize multiple patches in one
> mail (http://patchwork.coreboot.org/patch/3395/).
CAT28F512 patch on its own.
Stefan Tauner - 2012-08-13 23:53:17
On Wed, 31 Aug 2011 01:53:07 +0100
Andrew Morgan <ziltro@ziltro.com> wrote:

> On 30/08/11 23:25, Stefan Tauner wrote:
> > btw patch_es_: please post one per mail in the future, because
> > patchwork seems to be too dumb to recognize multiple patches in one
> > mail (http://patchwork.coreboot.org/patch/3395/).
> CAT28F512 patch on its own.
> 

just to get this into patchwork at the appropriate location:
this patch was refined and committed by uwe,
see <20110913221148.GH17397@greenwood>

Patch

Index: flashchips.c
===================================================================
--- flashchips.c	(revision 1421)
+++ flashchips.c	(working copy)
@@ -2305,6 +2305,30 @@ 
 	},
 
 	{
+		.vendor		= "CATALYST",
+		.name		= "CAT28F512",
+		.bustype	= BUS_PARALLEL,
+		.manufacture_id	= CATALYST_ID,
+		.model_id	= CATALYST_CAT28F512,
+		.total_size	= 64,
+		.page_size	= 256,
+		.feature_bits	= FEATURE_EITHER_RESET,
+		.tested		= TEST_OK_PR,
+		.probe		= probe_jedec,
+		.probe_timing	= TIMING_ZERO,
+		.block_erasers	=
+		{
+			{
+				.eraseblocks = { {64 * 1024, 1} },
+				.block_erase = erase_chip_block_jedec,
+			},
+		},
+		.write		= write_jedec_1,
+		.read		= read_memmapped,
+		.voltage	= {4500, 5500},
+	},
+
+	{
 		.vendor		= "Bright",
 		.name		= "BM29F040",
 		.bustype	= BUS_PARALLEL,
Index: flashchips.h
===================================================================
--- flashchips.h	(revision 1421)
+++ flashchips.h	(working copy)
@@ -192,6 +192,7 @@ 
 #define BRIGHT_BM29F400T	0xAD
 
 #define CATALYST_ID		0x31	/* Catalyst */
+#define CATALYST_CAT28F512	0xB8
 
 #define EMST_ID			0x8C	/* EMST / EFST Elite Flash Storage */
 #define EMST_F25L008A		0x2014