# HG changeset patch # User gthomas # Date 1066775760 0 # Node ID 80fa78c1b0747ea6e6d4e64cdabbf188f06efb02 # Parent 921f9882bd6d573c7fd0e8d1fe43de99db64d57a Fix bank issue on AM29LV033C - Jay Foster diff --git a/packages/devs/flash/amd/am29xxxxx/current/ChangeLog b/packages/devs/flash/amd/am29xxxxx/current/ChangeLog --- 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 + + * 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 * include/flash_am29xxxxx_parts.inl (CYGHWR_DEVS_FLASH_AMD_AM29LV081B, diff --git a/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx_parts.inl b/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx_parts.inl --- 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