From 01b1fea9b13b799a16efd743587dc861719e5212 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 15 Feb 2016 11:13:24 +0100 Subject: [PATCH] ARM64: zynqmp: Enable SF test command 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 --- include/configs/xilinx_zynqmp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index 69a9e249715..faf81f19411 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -105,6 +105,7 @@ # define CONFIG_SPI_FLASH_WINBOND # define CONFIG_CMD_SPI # define CONFIG_CMD_SF +# define CONFIG_CMD_SF_TEST #endif /* NAND */ -- 2.47.3