]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
cfi_flash: Add write buffer hack for M29EW flash
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Wed, 12 Jun 2013 06:56:35 +0000 (12:26 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 12 Jun 2013 09:52:01 +0000 (11:52 +0200)
Added CONFIG_ZYNQ_M29EW_WB_HACK.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mtd/cfi_flash.c
include/configs/zynq_common.h

index 22d84407dd4a6513eaed35bb029c009c86d40536..55631f12d0377a24ed8e327a2b714cfe6d60c0ab 100644 (file)
@@ -2236,6 +2236,10 @@ ulong flash_get_size (phys_addr_t base, int banknum)
                }
 
                info->sector_count = sect_cnt;
+               /* FIXME */
+#ifdef CONFIG_ZYNQ_M29EW_WB_HACK
+               qry.max_buf_write_size = 0x8;
+#endif
                info->buffer_size = 1 << le16_to_cpu(qry.max_buf_write_size);
                tmp = 1 << qry.block_erase_timeout_typ;
                info->erase_blk_tout = tmp *
index fe638c6594c68681c0a2c88c3b5bcb4b27040d20..d80fd3a36bd9680410c56dea31a0ae8f1fa506a7 100644 (file)
 # undef CONFIG_SYS_FLASH_PROTECTION /* don't use hardware protection */
 /* use buffered writes (20x faster) */
 # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
+# define CONFIG_ZYNQ_M29EW_WB_HACK
 #endif
 
 /* QSPI */