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]

MOAB - Fix NAND cycle times


-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: hal/powerpc/moab/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/moab/current/ChangeLog,v
retrieving revision 1.13
diff -u -5 -p -r1.13 ChangeLog
--- hal/powerpc/moab/current/ChangeLog	15 Oct 2003 14:37:20 -0000	1.13
+++ hal/powerpc/moab/current/ChangeLog	9 Dec 2003 02:45:13 -0000
@@ -1,5 +1,9 @@
+2003-12-08  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/moab.S: Fix cycle time on NAND FLASH.
+
 2003-10-15  Gary Thomas  <gary@mlbassoc.com>
 
 	* cdl/hal_powerpc_moab.cdl: Remove [unused] tests so "make tests" works.
 
 2003-10-09  Gary Thomas  <gary@mlbassoc.com>
Index: hal/powerpc/moab/current/src/moab.S
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/moab/current/src/moab.S,v
retrieving revision 1.2
diff -u -5 -p -r1.2 moab.S
--- hal/powerpc/moab/current/src/moab.S	24 Sep 2003 16:09:57 -0000	1.2
+++ hal/powerpc/moab/current/src/moab.S	9 Dec 2003 02:44:55 -0000
@@ -165,11 +165,18 @@ sdram_ok:               
         li      r3,DCR_EBC0_B0CR
         lwi     r4,0xFFE38000
         mtdcr   DCR_EBC0_CFGADDR,r3
         mtdcr   DCR_EBC0_CFGDATA,r4
         li      r3,DCR_EBC0_B1AP          // MAIN FLASH at 0xCxxxxxxx, R/W
-        lwi     r4,0x7F8FFE00
+#if CYGHWR_HAL_POWERPC_CPU_SPEED == 250        
+        lwi     r4,0x03840000             // Cycle time = 50ns
+#elif CYGHWR_HAL_POWERPC_CPU_SPEED == 333
+        lwi     r4,0x05840000            
+#else
+        lwi     r4,0x0C840000            
+#error "Unsupported board/CPU speed"        
+#endif
         mtdcr   DCR_EBC0_CFGADDR,r3
         mtdcr   DCR_EBC0_CFGDATA,r4
         li      r3,DCR_EBC0_B1CR
         lwi     r4,0xC0018000             // 1MB, 8bits [actually only 1 byte!]
         mtdcr   DCR_EBC0_CFGADDR,r3

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