changeset 1326:80fa78c1b074

Fix bank issue on AM29LV033C - Jay Foster
author gthomas
date Tue, 21 Oct 2003 22:36:00 +0000
parents 921f9882bd6d
children b1c975b96245
files packages/devs/flash/amd/am29xxxxx/current/ChangeLog packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx_parts.inl
diffstat 2 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/flash/amd/am29xxxxx/current/ChangeLog
+++ b/packages/devs/flash/amd/am29xxxxx/current/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-21  Jay Foster   <jay@systech.com>
+
+	* include/flash_am29xxxxx_parts.inl (CYGHWR_DEVS_FLASH_AMD_AM29LV033C):
+      Fixed device definition to allow erasing of the upper half of the
+      device.  The Sector Protect Verify command would erroneously report
+      the upper half of the device as locked.
+
 2003-10-02  Jay Foster   <jay@systech.com>
 
 	* include/flash_am29xxxxx_parts.inl (CYGHWR_DEVS_FLASH_AMD_AM29LV081B,
--- a/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx_parts.inl
+++ b/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx_parts.inl
@@ -524,7 +524,15 @@
         device_size: 0x400000 * CYGNUM_FLASH_INTERLEAVE,
         base_mask  : ~(0x400000 * CYGNUM_FLASH_INTERLEAVE - 1),
         bootblock  : false,
-        banked     : false,
+        // Although this device is not a true banked device, we
+        // treat the device as having two banks to get the 
+        // Sector Protect Verify to work for the upper half of
+        // the device.  Reference Note 9 for Table 9 in the
+        // AMD data sheet.
+        banked     : true,
+        banks      : { 0x200000 * CYGNUM_FLASH_INTERLEAVE,
+                       0
+                     },
         bufsiz     : 1
     },
 #endif