Add option to test flash memory.
Please make sure you have enough malloc space if you want to test larger
memories (CONFIG_SYS_MALLOC_LEN).
ZynqMP> sf test 0 20000
SPI flash test:
0 erase: 2906 ticks, 44 KiB/s 0.352 Mbps
1 check: 9 ticks, 14222 KiB/s 113.776 Mbps
2 write: 166 ticks, 771 KiB/s 6.168 Mbps
3 read: 8 ticks, 16000 KiB/s 128.000 Mbps
Test passed
0 erase: 2906 ticks, 44 KiB/s 0.352 Mbps
1 check: 9 ticks, 14222 KiB/s 113.776 Mbps
2 write: 166 ticks, 771 KiB/s 6.168 Mbps
3 read: 8 ticks, 16000 KiB/s 128.000 Mbps
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
# define CONFIG_SPI_FLASH_WINBOND
# define CONFIG_CMD_SPI
# define CONFIG_CMD_SF
+# define CONFIG_CMD_SF_TEST
#endif
/* NAND */