There is a hack needed in cfi_flash.c for zynq
This patch adds back the same through defconfig
to get NOR working on zynq.
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Add register writes to boot.bin format (max 256 pairs).
Expect a table of register-value pairs, e.g. "0x12345678 0x4321"
+config ZYNQ_M29EW_WB_HACK
+ bool "Zynq NOR hack"
+ default n
+ help
+ The option provides hack for Zynq NOR driver which is required
+ for NOR operations to work as expected.
+
# Temporary Kconfig options which needs to be fixed
config SYS_I2C_MUX_ADDR
int
CONFIG_ARM=y
CONFIG_ARCH_ZYNQ=y
+CONFIG_ZYNQ_M29EW_WB_HACK=y
# CONFIG_MMC is not set
CONFIG_SYS_TEXT_BASE=0x4000000
CONFIG_DEFAULT_DEVICE_TREE="zynq-zc770-xm012"
}
info->sector_count = sect_cnt;
+#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 *
CONFIG_ZYNQ_HISPD_BROKEN
CONFIG_ZYNQ_I2C0
CONFIG_ZYNQ_I2C1
+CONFIG_ZYNQ_M29EW_WB_HACK
CONFIG_ZYNQ_PS_CLK_FREQ
CONFIG_ZYNQ_SDHCI0
CONFIG_ZYNQ_SDHCI1