Files
u-boot-tk1-som/include
aaron.williams@caviumnetworks.com 239cb9d904 mtd: cfi_flash: Fix CFI flash driver for 8-bit bus support
This commit is based on that patch from aaron.williams@caviumnetworks.com
with same commit title. pulled the same code changes into current u-boot tree.

http://patchwork.ozlabs.org/patch/140863/
http://lists.denx.de/pipermail/u-boot/2011-April/089606.html

This patch corrects the addresses used when working with Spansion/AMD FLASH chips.
Addressing for 8 and 16 bits is almost identical except in the 16-bit case the
LSB of the address is always 0.  The confusion arose because the addresses
in the datasheet for 16-bit mode are word addresses but this code assumed it was
byte addresses.

I have only been able to test this on our Octeon boards which use either an 8-bit
or 16-bit bus.  I have not tested the case where there's an 8-bit part on a 16-bit
bus.

This patch also adds some delays as suggested by Spansion.

If a part can be both 8 and 16-bits, it forces it to work in 8-bit mode if an
8-bit bus is detected.

Apart from the pulled changes, fixed few minor code cleanups and tested
on 256M29EW, 512M29EW flashes.

Before this fix:
---------------
Bank # 1: CFI conformant flash (8 x 8)  Size: 64 MB in 512 Sectors
  AMD Standard command set, Manufacturer ID: 0xFF, Device ID: 0xFF
  Erase timeout: 4096 ms, write timeout: 2 ms
  Buffer write timeout: 5 ms, buffer size: 1024 bytes

After this fix:
--------------
Bank # 1: CFI conformant flash (8 x 8)  Size: 64 MB in 512 Sectors
  AMD Standard command set, Manufacturer ID: 0x89, Device ID: 0x7E2301
  Erase timeout: 4096 ms, write timeout: 2 ms
  Buffer write timeout: 5 ms, buffer size: 1024 bytes

Signed-off-by: Aaron Williams <aaron.williams@caviumnetworks.com>
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tested-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2013-04-02 14:27:45 +02:00
..
2010-04-13 09:13:04 +02:00
2013-02-20 16:48:17 +09:00
2012-08-09 23:42:20 +02:00
2011-08-01 15:19:40 +02:00
2012-05-15 08:31:37 +02:00
2012-11-02 15:20:41 -07:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2010-01-27 21:23:14 +01:00
2008-05-21 00:14:08 +02:00
2008-05-10 11:44:55 +02:00
2008-05-21 00:14:08 +02:00
2012-12-06 13:56:39 -07:00
2012-03-27 22:05:28 +02:00
2013-03-12 23:28:40 +01:00
2013-03-15 16:14:00 -04:00
2012-09-01 16:21:50 +02:00
2009-01-24 00:23:09 +01:00
2008-05-21 00:14:08 +02:00
2009-09-04 21:54:52 +02:00
2011-10-22 01:22:21 +02:00
2012-12-11 13:17:34 -07:00
2010-09-19 19:29:47 +02:00
2013-02-19 17:01:26 -05:00
2011-08-04 23:34:02 +02:00
2013-02-08 22:32:38 -05:00
2013-02-07 20:38:55 -05:00
2012-10-22 14:31:25 -05:00
2011-08-01 15:19:40 +02:00
2013-03-04 14:19:56 -05:00
2012-10-16 12:35:10 +02:00
2012-10-22 14:31:25 -05:00
2012-05-15 08:31:34 +02:00
2012-11-27 09:41:10 -07:00
2013-01-08 10:54:33 +09:00
2012-11-15 21:08:20 +09:00
2013-03-15 16:14:00 -04:00
2013-03-27 15:30:11 -04:00
2009-10-13 06:17:35 -05:00
2012-05-25 09:15:10 +02:00
2013-02-19 17:01:26 -05:00
2012-10-26 16:28:07 +02:00
2008-10-18 21:54:03 +02:00
2013-03-08 16:41:13 -05:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2012-10-23 15:23:26 -05:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2012-11-26 15:41:29 -06:00
2012-11-04 11:00:36 -07:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2010-03-21 22:44:42 +01:00
2008-10-18 21:54:03 +02:00
2008-05-21 00:14:08 +02:00
2010-03-12 23:06:04 +01:00
2011-10-05 22:03:11 +02:00
2011-03-27 19:19:54 +02:00
2008-10-18 21:54:03 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2013-03-04 14:19:56 -05:00
2012-11-27 17:26:48 -06:00
2012-12-13 11:46:56 -07:00
2011-08-04 23:34:02 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2012-11-10 19:45:58 +08:00
2009-10-03 10:17:56 +02:00
2008-05-21 00:14:08 +02:00
2012-05-15 08:31:40 +02:00
2011-12-07 08:45:51 +01:00
2012-05-15 08:31:37 +02:00
2011-04-29 07:32:48 -05:00
2012-12-20 17:04:21 +01:00
2011-09-30 22:00:55 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2011-08-01 15:19:40 +02:00
2012-10-15 11:53:59 -07:00
2008-10-18 21:54:03 +02:00
2011-08-01 15:19:40 +02:00