]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ARM: zynq: Remove ZYNQ_M29EW_WB_HACK macro
authorMichal Simek <michal.simek@xilinx.com>
Fri, 16 Dec 2016 12:46:20 +0000 (13:46 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 11 Jan 2017 13:10:37 +0000 (14:10 +0100)
This functionality should be covered by:
"mtd: cfi_flash: Write buffer size adjustment for M29EW Numonyx devices"
(sha1: 6f13889eb03fd3ce7b643aa6134856b3a2bf8d88)

That's why remove this macro and hack.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/mach-zynq/Kconfig
drivers/mtd/cfi_flash.c
include/configs/zynq-common.h

index 3f0dafee93101037e19b78edb4df27d9a383200c..74365c4927e56396cb74dad8bb5a84e79db7c472 100644 (file)
@@ -52,9 +52,6 @@ config BOOT_INIT_FILE
          Expect a table of register-value pairs, e.g. "0x12345678 0x4321"
 
 # Temporary Kconfig options which needs to be fixed
-config ZYNQ_M29EW_WB_HACK
-       bool
-
 config SYS_I2C_MUX_ADDR
        int
 
index 9d7c5dd86383058901013b277e540b74cc3e4dde..33c4a9342f8ebf6d328fc0e919300ad495b0c60b 100644 (file)
@@ -2237,10 +2237,6 @@ 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 7803ff64073079854998bb8e28a9b5e44911a606..f1631cd10f73597e4700a5cf2838ad37db11f83f 100644 (file)
@@ -73,7 +73,6 @@
 # define CONFIG_FLASH_CFI_DRIVER
 # undef CONFIG_SYS_FLASH_PROTECTION
 # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
-# define CONFIG_ZYNQ_M29EW_WB_HACK
 #endif
 
 /* MMC */