]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ARM64: zynqmp: Enable SF test command
authorMichal Simek <michal.simek@xilinx.com>
Mon, 15 Feb 2016 10:13:24 +0000 (11:13 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 17 Feb 2016 09:01:43 +0000 (10:01 +0100)
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>
include/configs/xilinx_zynqmp.h

index 69a9e249715e8f38b6f1081f38309b39674cf458..faf81f194116543073c88e6638d63cbcef2a9f28 100644 (file)
 # define CONFIG_SPI_FLASH_WINBOND
 # define CONFIG_CMD_SPI
 # define CONFIG_CMD_SF
+# define CONFIG_CMD_SF_TEST
 #endif
 
 /* NAND */