]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Changed scratch address used by the alternate memory test
authorVipul Kumar <vipul.kumar@xilinx.com>
Thu, 15 Feb 2018 05:54:41 +0000 (11:24 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 21 Feb 2018 09:06:25 +0000 (10:06 +0100)
This patch changed CONFIG_SYS_MEMTEST_SCRATCH address to the
accessible DDR address used by alternate memory test.
Before this, 0xfffc0000 address was used, which is the OCM
address and not enabled in MMU table. So, whenever trying
to access 0xfffc0000 address, got Synchronous Abort exception.

After changing CONFIG_SYS_MEMTEST_SCRATCH address, alternate
memory test is working fine.
Keep origin setting just for mini configurations.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h
include/configs/xilinx_zynqmp_mini.h

index bfd3d531383661b293193abf9b2a5f78e57ef0b7..09bd93e10f3ae3ff4401c0830c2ecceb0416d9b8 100644 (file)
@@ -21,7 +21,9 @@
 #define GICC_BASE      0xF9020000
 
 #define CONFIG_SYS_ALT_MEMTEST
-#define CONFIG_SYS_MEMTEST_SCRATCH     0xfffc0000
+#ifndef CONFIG_SYS_MEMTEST_SCRATCH
+# define CONFIG_SYS_MEMTEST_SCRATCH    0x10800000
+#endif
 
 #ifndef CONFIG_NR_DRAM_BANKS
 # define CONFIG_NR_DRAM_BANKS          2
index 7c2a38be3887c4f7d02c24800a87508aa2279380..29235d84b8046f3515727cb2a28498d4590f3874 100644 (file)
@@ -16,6 +16,8 @@
 /* #define CONFIG_SYS_DCACHE_OFF */
 #define CONFIG_SYS_ICACHE_OFF
 
+#define CONFIG_SYS_MEMTEST_SCRATCH     0xfffc0000
+
 #include <configs/xilinx_zynqmp.h>
 
 /* Undef unneeded configs */