This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
STMicro / Intel Strata Flash Compatible
- From: Scott Wilkinson <swilkinson at alliantnetworks dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Mon, 26 Jan 2004 15:53:42 -0800
- Subject: STMicro / Intel Strata Flash Compatible
I am using Flash from STMicro, part number M58LW032D. Flash from
STMicro is programmaticaly compatible with the Intel chip. The attached
patch will detect this chip and treat it like Intel Strata flash.
Only tested with the above part.
Index: ./devs/flash/intel/strata/current/ChangeLog
===================================================================
RCS file: /home/cvs/ecos_artisan/packages/devs/flash/intel/strata/current/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ./devs/flash/intel/strata/current/ChangeLog 14 May 2003 17:47:53 -0000 1.1
+++ ./devs/flash/intel/strata/current/ChangeLog 27 Jan 2004 00:01:02 -0000 1.2
@@ -1,3 +1,9 @@
+2005-01-26 Scott Wilkinson <scott@alliantnetworks.com>
+ * src/strata.h:
+ * src/strata.c:
+ Flash from STMicro is compatible with the Intel strata chips,
+ so detect them as well. Check for manuf id 0x20.
+
2003-05-02 Jani Monoses <jani@iv.ro>
* src/strata.c: Switch to using generic flash_query_dev.
Index: ./devs/flash/intel/strata/current/src/strata.c
===================================================================
RCS file: /home/cvs/ecos_artisan/packages/devs/flash/intel/strata/current/src/strata.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ./devs/flash/intel/strata/current/src/strata.c 14 May 2003 17:47:53 -0000 1.1
+++ ./devs/flash/intel/strata/current/src/strata.c 26 Jan 2004 23:47:12 -0000 1.2
@@ -74,7 +74,8 @@
flash_dev_query(&data);
qp = &data;
- if ( (qp->manuf_code == FLASH_Intel_code)
+ if ( ((qp->manuf_code == FLASH_Intel_code) ||
+ (qp->manuf_code == FLASH_STMicro_code))
#ifdef CYGOPT_FLASH_IS_BOOTBLOCK
// device types go as follows: 0x90 for 16-bits, 0xD0 for 8-bits,
// plus 0 or 1 for -T (Top Boot) or -B (Bottom Boot)
Index: ./devs/flash/intel/strata/current/src/strata.h
===================================================================
RCS file: /home/cvs/ecos_artisan/packages/devs/flash/intel/strata/current/src/strata.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ./devs/flash/intel/strata/current/src/strata.h 14 May 2003 17:47:53 -0000 1.1
+++ ./devs/flash/intel/strata/current/src/strata.h 26 Jan 2004 23:48:07 -0000 1.2
@@ -156,6 +156,7 @@
// ------------------------------------------------------------------------
#define FLASH_Intel_code 0x89 // NOT mapped to 16+16
+#define FLASH_STMicro_code 0x20 // NOT mapped to 16+16
// Extended query information
struct FLASH_query {