AT49 flash driver workaround enabling
Andrew Lunn
andrew@lunn.ch
Fri Nov 12 09:16:00 GMT 2004
The AT49XXXX flash driver contains code to work around a bug in the
erase for the parts AT49BV1604A & AT49BV1614A. This workaround is not
being enabled when these parts are being used. The following cdl
changes should solve this. Plus i added am #warning when the driver is
being compiled for these parts but the workaround is not enabled.
Andrew
-------------- next part --------------
? arm/phycore
Index: arm/eb40a/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/eb40a/current/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- arm/eb40a/current/ChangeLog 15 Jul 2003 01:53:10 -0000 1.2
+++ arm/eb40a/current/ChangeLog 12 Nov 2004 09:15:49 -0000
@@ -1,3 +1,8 @@
+2004-11-12 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * cdl/flash_eb40a.cdl: Enable the hardware bug workaround in the
+ flash driver.
+
2003-07-15 Jonathan Larmour <jifl@eCosCentric.com>
* src/eb40a_flash.c: Generic Atmel driver now supports boot blocks.
Index: arm/eb40a/current/cdl/flash_eb40a.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/eb40a/current/cdl/flash_eb40a.cdl,v
retrieving revision 1.1
diff -u -r1.1 flash_eb40a.cdl
--- arm/eb40a/current/cdl/flash_eb40a.cdl 13 May 2003 18:32:51 -0000 1.1
+++ arm/eb40a/current/cdl/flash_eb40a.cdl 12 Nov 2004 09:15:49 -0000
@@ -56,7 +56,8 @@
parent CYGPKG_IO_FLASH
active_if CYGPKG_IO_FLASH
requires CYGPKG_HAL_ARM_AT91
-
+ requires CYGHWR_DEVS_FLASH_ATMEL_AT49XXXX_ERASE_BUG_WORKAROUND
+
compile eb40a_flash.c
# Arguably this should do in the generic package
Index: arm/eb42/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/eb42/current/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- arm/eb42/current/ChangeLog 15 Jul 2003 01:53:21 -0000 1.2
+++ arm/eb42/current/ChangeLog 12 Nov 2004 09:15:49 -0000
@@ -1,3 +1,8 @@
+2004-11-12 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * cdl/flash_eb42.cdl: Enable the bug workaround for the flash
+ device.
+
2003-07-15 Jonathan Larmour <jifl@eCosCentric.com>
* src/eb42_flash.c: Generic Atmel driver now supports boot blocks.
Index: arm/eb42/current/cdl/flash_eb42.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/eb42/current/cdl/flash_eb42.cdl,v
retrieving revision 1.1
diff -u -r1.1 flash_eb42.cdl
--- arm/eb42/current/cdl/flash_eb42.cdl 13 May 2003 18:32:52 -0000 1.1
+++ arm/eb42/current/cdl/flash_eb42.cdl 12 Nov 2004 09:15:49 -0000
@@ -57,7 +57,8 @@
parent CYGPKG_IO_FLASH
active_if CYGPKG_IO_FLASH
requires CYGPKG_HAL_ARM_AT91
-
+ requires CYGHWR_DEVS_FLASH_ATMEL_AT49XXXX_ERASE_BUG_WORKAROUND
+
compile eb42_flash.c
# Arguably this should do in the generic package
Index: arm/eb55/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/eb55/current/ChangeLog,v
retrieving revision 1.2
diff -u -r1.2 ChangeLog
--- arm/eb55/current/ChangeLog 15 Jul 2003 01:53:38 -0000 1.2
+++ arm/eb55/current/ChangeLog 12 Nov 2004 09:15:49 -0000
@@ -1,3 +1,8 @@
+2004-11-12 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * cdl/flash_eb55.cdl: Enable the hardware bug workaround in the
+ generic flash driver
+
2003-07-15 Jonathan Larmour <jifl@eCosCentric.com>
* src/eb55_flash.c: Generic Atmel driver now supports boot blocks.
Index: arm/eb55/current/cdl/flash_eb55.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/eb55/current/cdl/flash_eb55.cdl,v
retrieving revision 1.2
diff -u -r1.2 flash_eb55.cdl
--- arm/eb55/current/cdl/flash_eb55.cdl 15 Jul 2003 01:53:50 -0000 1.2
+++ arm/eb55/current/cdl/flash_eb55.cdl 12 Nov 2004 09:15:49 -0000
@@ -57,6 +57,7 @@
parent CYGPKG_IO_FLASH
active_if CYGPKG_IO_FLASH
requires CYGPKG_HAL_ARM_AT91
+ requires CYGHWR_DEVS_FLASH_ATMEL_AT49XXXX_ERASE_BUG_WORKAROUND
compile eb55_flash.c
Index: arm/jtst/current/cdl/flash_jtst.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/arm/jtst/current/cdl/flash_jtst.cdl,v
retrieving revision 1.1
diff -u -r1.1 flash_jtst.cdl
--- arm/jtst/current/cdl/flash_jtst.cdl 25 Sep 2004 09:48:14 -0000 1.1
+++ arm/jtst/current/cdl/flash_jtst.cdl 12 Nov 2004 09:15:50 -0000
@@ -57,7 +57,8 @@
parent CYGPKG_IO_FLASH
active_if CYGPKG_IO_FLASH
requires CYGPKG_HAL_ARM_AT91
-
+ requires CYGHWR_DEVS_FLASH_ATMEL_AT49XXXX_ERASE_BUG_WORKAROUND
+
compile jtst_flash.c
# Arguably this should do in the generic package
Index: atmel/at49xxxx/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/atmel/at49xxxx/current/ChangeLog,v
retrieving revision 1.7
diff -u -r1.7 ChangeLog
--- atmel/at49xxxx/current/ChangeLog 27 May 2004 06:43:31 -0000 1.7
+++ atmel/at49xxxx/current/ChangeLog 12 Nov 2004 09:15:51 -0000
@@ -1,3 +1,8 @@
+2004-11-12 Andrew Lunn <andrew.lunn@ascom.ch>
+
+ * include/flash_at49xxxx_parts.inl: Give a compiler error if the
+ bug workaround for the AT49BV16[01]4A is not enabled.
+
2004-05-11 Thomas Koeller <thomas.koeller@baslerweb.com>
* cdl/flash_atmel_at49xxxx.cdl:
Index: atmel/at49xxxx/current/include/flash_at49xxxx_parts.inl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/flash/atmel/at49xxxx/current/include/flash_at49xxxx_parts.inl,v
retrieving revision 1.3
diff -u -r1.3 flash_at49xxxx_parts.inl
--- atmel/at49xxxx/current/include/flash_at49xxxx_parts.inl 24 Nov 2003 15:24:16 -0000 1.3
+++ atmel/at49xxxx/current/include/flash_at49xxxx_parts.inl 12 Nov 2004 09:15:51 -0000
@@ -189,6 +189,15 @@
},
#endif
+#if defined(CYGHWR_DEVS_FLASH_ATMEL_AT49BV1604A) || \
+ defined(CYGHWR_DEVS_FLASH_ATMEL_AT49BV1614A) || \
+ defined(CYGHWR_DEVS_FLASH_ATMEL_AT49LV1614A)
+#ifndef CYGHWR_DEVS_FLASH_ATMEL_AT49XXXX_ERASE_BUG_WORKAROUND
+#warning This flash device contains a hardware bug and you have not
+#warning enabled the workaround for it. See the CDL file.
+#endif
+#endif
+
#endif // ifndef CYGONCE_DEVS_FLASH_ATMEL_AT49XXXX_PARTS_INL
// EOF flash_at49xxxx_parts.inl
More information about the Ecos-patches
mailing list