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


> 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.

Committed.

I've also made the modifications needed for the e7t to make use of
this driver. It turned out to be more than the 1 liner i thought it
would be.

      Andrew

Index: ecos.db
===================================================================
RCS file: /cvs/ecos/ecos/packages/ecos.db,v
retrieving revision 1.109
diff -u -r1.109 ecos.db
--- ecos.db	4 Nov 2003 09:05:21 -0000	1.109
+++ ecos.db	4 Nov 2003 09:34:31 -0000
@@ -3642,9 +3642,9 @@
 	alias { "ARM Evaluator7T board (AEB-2)" aeb2 }
 	packages { CYGPKG_HAL_ARM
                    CYGPKG_HAL_ARM_E7T
-               CYGPKG_DEVS_FLASH_ARM_E7T
-               CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
-               CYGPKG_DEVS_FLASH_SST_39VF400
+                   CYGPKG_DEVS_FLASH_ARM_E7T
+                   CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
+                   CYGPKG_DEVS_FLASH_SST_39VFXXX
 	           CYGPKG_IO_SERIAL_ARM_E7T
         }
         description "
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/ChangeLog,v
retrieving revision 1.125
diff -u -r1.125 ChangeLog
--- ChangeLog	4 Nov 2003 09:05:21 -0000	1.125
+++ ChangeLog	4 Nov 2003 09:34:36 -0000
@@ -1,5 +1,9 @@
 2003-11-04  Andrew Lunn  <andrew.lunn@ascom.ch>
 
+        * ecos.db: Modified the e7t to use the new 39VFXXX flash driver
+	
+2003-11-04  Andrew Lunn  <andrew.lunn@ascom.ch>
+
 	* ecos.db: Replaced the 39VF4XX flash driver with a 39VFXXX driver.
 
 2003-10-24  Jonathan Larmour  <jifl@eCosCentric.com>
Index: devs/flash/arm/e7t/current//ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/e7t/current/ChangeLog,v
retrieving revision 1.1
diff -u -r1.1 ChangeLog
--- devs/flash/arm/e7t/current//ChangeLog	27 Jul 2003 09:40:45 -0000	1.1
+++ devs/flash/arm/e7t/current//ChangeLog	4 Nov 2003 09:34:36 -0000
@@ -1,3 +1,8 @@
+2003-11-04  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* cdl/flash_e7t.cdl: 
+	* src/arm_e7t_flash.c: Updates to use the new 39VFXXX generic driver.
+
 2003-07-03  Chris Garry <cgarry@sweeneydesign.co.uk>
 
 	* src/arm_e7t_flash.h: 
Index: devs/flash/arm/e7t/current//cdl/flash_e7t.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/e7t/current/cdl/flash_e7t.cdl,v
retrieving revision 1.1
diff -u -r1.1 flash_e7t.cdl
--- devs/flash/arm/e7t/current//cdl/flash_e7t.cdl	27 Jul 2003 09:40:45 -0000	1.1
+++ devs/flash/arm/e7t/current//cdl/flash_e7t.cdl	4 Nov 2003 09:34:36 -0000
@@ -9,6 +9,7 @@
 ## -------------------------------------------
 ## This file is part of eCos, the Embedded Configurable Operating System.
 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+## Copyright (C) 2003 Andrew Lunn
 ##
 ## eCos is free software; you can redistribute it and/or modify it under
 ## the terms of the GNU General Public License as published by the Free
@@ -59,7 +60,7 @@
 
     # Arguably this should do in the generic package
     # but then there is a logic loop so you can never enable it.
-    cdl_option CYGINT_DEVS_FLASH_SST_39VF400_REQUIRED {
+    cdl_option CYGINT_DEVS_FLASH_SST_39VFXXX_REQUIRED {
         display   "E7T has SST39VF400 FLASH part fitted"
         default_value 0
         requires !CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED
Index: devs/flash/arm/e7t/current//src/arm_e7t_flash.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/e7t/current/src/arm_e7t_flash.c,v
retrieving revision 1.1
diff -u -r1.1 arm_e7t_flash.c
--- devs/flash/arm/e7t/current//src/arm_e7t_flash.c	27 Jul 2003 09:40:45 -0000	1.1
+++ devs/flash/arm/e7t/current//src/arm_e7t_flash.c	4 Nov 2003 09:34:36 -0000
@@ -9,6 +9,7 @@
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+// Copyright (C) 2003 Andrew Lunn
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -63,11 +64,12 @@
 
 //--------------------------------------------------------------------------
 // Platform specific extras
+#define CYGPKG_DEVS_FLASH_SST_39VF400
 
 //--------------------------------------------------------------------------
 // Now include the driver code.
-#ifdef CYGINT_DEVS_FLASH_SST_39VF400_REQUIRED
-#include "cyg/io/flash_sst_39vf400.inl"
+#ifdef CYGINT_DEVS_FLASH_SST_39VFXXX_REQUIRED
+#include "cyg/io/flash_sst_39vfxxx.inl"
 #endif
 
 #ifdef CYGINT_DEVS_FLASH_AMD_AM29XXXXX_REQUIRED


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