]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: Hack to fix bug for Numonyx flash in 8 bit mode
authorJohn Linn <john.linn@xilinx.com>
Fri, 9 Jul 2010 16:45:31 +0000 (10:45 -0600)
committerJagan <jaganna@xilinx.com>
Thu, 31 May 2012 08:00:31 +0000 (13:30 +0530)
This is a hack that should be reconsidered. In 8 bit mode, the CFI data
for the part is wrong in that the buffer size is 1024 but should be 256.

Signed-off-by: Jagan <jaganna@xilinx.com>
drivers/mtd/cfi_flash.c

index 0909fe715ac4a1962d742ce704f0506d3d969e20..6d35ba143cc77a11e8aee6444fba905c77393662 100644 (file)
@@ -2025,7 +2025,14 @@ ulong flash_get_size (phys_addr_t base, int banknum)
                }
 
                info->sector_count = sect_cnt;
-               info->buffer_size = 1 << le16_to_cpu(qry.max_buf_write_size);
+               /* info->buffer_size =
+                       1 << le16_to_cpu(qry.max_buf_write_size); */
+               /*
+                * Xilinx hack for now due to numonyx bug with 8 bit mode
+                * The CFI data for the buffer size is wrong in the part.
+                * It may be feasible to fix this better.
+                */
+               info->buffer_size = 256;
                tmp = 1 << qry.block_erase_timeout_typ;
                info->erase_blk_tout = tmp *
                        (1 << qry.block_erase_timeout_max);