This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Flash driver for SST39VF080 and SST39VF016


On Donnerstag, 30. Oktober 2003 20:36, Andrew Lunn wrote:
> On Thu, Oct 02, 2003 at 04:13:42PM +0200, Roland Ca?ebohm wrote:
> > Attached is a flash driver for SST39VF080 and SST39VF016 cloned from the
> > at29xxxx driver.
>
> A question about naming. We already have a 39vf400 driver. You have
> named your new driver 39vfxxx and it support 080 and 016. Would it be
> better to name it 39vf0xx? How generic is the driver? Could it in
> theory support all of xxx, including the 400 or only 0xx?
>
>        Thanks
>           Andrew

I have attached an additional patch which includes support for
39vf400 taken values from the 39vf400 driver, but I can't test
it because I haven't got hardware with a 39vf400 flash.
But I think in theory it should work.

Best regards,
Roland
-- 

___________________________________________________

VS Vision Systems GmbH, Industrial Image Processing
Dipl.-Ing. Roland Caßebohm
Aspelohe 27A, D-22848 Norderstedt, Germany
http://www.visionsystems.de
___________________________________________________
Index: ecos.db
===================================================================
RCS file: /home/cassebohm/net/USERS/CVSROOT/VSprojects/ecos/packages/ecos.db,v
retrieving revision 1.1.1.1.2.6
diff -u -5 -p -r1.1.1.1.2.6 ecos.db
--- ecos.db	21 Oct 2003 16:30:59 -0000	1.1.1.1.2.6
+++ ecos.db	31 Oct 2003 09:23:34 -0000
@@ -529,12 +529,12 @@ package CYGPKG_DEVS_FLASH_SST_39VFXXX {
         directory       devs/flash/sst/39vfxxx
         script          flash_sst_39vfxxx.cdl
         hardware
         description "
            This package contains hardware support for SST 39VFxxx
-           flash memory devices. Until now it supports SST 39VF080
-           and 39VF016 devices."
+           flash memory devices. Until now it supports SST 39VF080,
+           39VF016 and 39VF400 devices."
 }
 
 package CYGPKG_DEVS_FLASH_INTEL_28FXXX {
 	alias 		{ "Generic FLASH memory support for Intel 28Fxxx Flash parts" flashfile }
 	directory	devs/flash/intel/28fxxx
Index: devs/flash/sst/39vfxxx/current/ChangeLog
===================================================================
RCS file: /home/cassebohm/net/USERS/CVSROOT/VSprojects/ecos/packages/devs/flash/sst/39vfxxx/current/Attic/ChangeLog,v
retrieving revision 1.1.2.2
diff -u -5 -p -r1.1.2.2 ChangeLog
--- devs/flash/sst/39vfxxx/current/ChangeLog	2 Oct 2003 13:43:16 -0000	1.1.2.2
+++ devs/flash/sst/39vfxxx/current/ChangeLog	31 Oct 2003 09:19:46 -0000
@@ -1,10 +1,10 @@
 2003-10-02  Roland Caßebohm <r.cassebohm@visionsystems.de>
 
 	* include/flash_sst_39vfxxx.inl: 
 	* cdl/flash_sst_39vfxxx.cdl: New package cloned from at29xxxx driver.
-	Supported devices: SST39VF080 and SST39VF016.
+	Supported devices: SST39VF080, SST39VF016 and SST39VF400.
 
 //===========================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
Index: devs/flash/sst/39vfxxx/current/include/flash_sst_39vfxxx.inl
===================================================================
RCS file: /home/cassebohm/net/USERS/CVSROOT/VSprojects/ecos/packages/devs/flash/sst/39vfxxx/current/include/Attic/flash_sst_39vfxxx.inl,v
retrieving revision 1.1.2.2
diff -u -5 -p -r1.1.2.2 flash_sst_39vfxxx.inl
--- devs/flash/sst/39vfxxx/current/include/flash_sst_39vfxxx.inl	2 Oct 2003 13:43:16 -0000	1.1.2.2
+++ devs/flash/sst/39vfxxx/current/include/flash_sst_39vfxxx.inl	31 Oct 2003 09:26:09 -0000
@@ -104,10 +104,19 @@
 # define CYGNUM_FLASH_WIDTH             (8)
 # define CYGNUM_FLASH_BLANK             (1)
 # define CYGNUM_FLASH_ID_MANUFACTURER   FLASHWORD(0xBF)
 # define CYGNUM_FLASH_ID_DEVICE         FLASHWORD(0xD9)
 #endif
+#ifdef CYGPKG_DEVS_FLASH_SST_39VF400
+# define FLASH_BLOCK_SIZE               (0x1000*CYGNUM_FLASH_INTERLEAVE)
+# define FLASH_NUM_REGIONS              (0x80000/FLASH_BLOCK_SIZE)
+# define CYGNUM_FLASH_BASE_MASK         (0xFFF80000u) // 512kB devices
+# define CYGNUM_FLASH_WIDTH             (16)
+# define CYGNUM_FLASH_BLANK             (1)
+# define CYGNUM_FLASH_ID_MANUFACTURER   FLASHWORD(0x00BF)
+# define CYGNUM_FLASH_ID_DEVICE         FLASHWORD(0x2780)
+#endif
 
 #define FLASH_DEVICE_SIZE               (FLASH_BLOCK_SIZE*FLASH_NUM_REGIONS)
 #define CYGNUM_FLASH_DEVICES            (CYGNUM_FLASH_INTERLEAVE*CYGNUM_FLASH_SERIES)
 
 //----------------------------------------------------------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]