aboutsummaryrefslogtreecommitdiffstats
path: root/plat
diff options
context:
space:
mode:
authorDimitris Papastamos <dimitris.papastamos@arm.com>2019-03-07 13:31:41 +0000
committerGitHub <noreply@github.com>2019-03-07 13:31:41 +0000
commitf7c8f31e94e5f1a22968f3008262d1e5a4063e87 (patch)
treeb5dc6dd234f6201085ae8b633f702245a28ebf67 /plat
parent8061c458b7556f4c7968610981d5d9dc5e9ba850 (diff)
parentbf8b8fb657a6145699550258a5a6839bd412aeff (diff)
downloadplatform_external_arm-trusted-firmware-f7c8f31e94e5f1a22968f3008262d1e5a4063e87.tar.gz
platform_external_arm-trusted-firmware-f7c8f31e94e5f1a22968f3008262d1e5a4063e87.tar.bz2
platform_external_arm-trusted-firmware-f7c8f31e94e5f1a22968f3008262d1e5a4063e87.zip
Merge pull request #1862 from thloh85-intel/s10_bl2
plat: intel: Improve ECC scrubbing performance
Diffstat (limited to 'plat')
-rw-r--r--plat/intel/soc/stratix10/soc/s10_memory_controller.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plat/intel/soc/stratix10/soc/s10_memory_controller.c b/plat/intel/soc/stratix10/soc/s10_memory_controller.c
index 851fc59a2..ed06f5498 100644
--- a/plat/intel/soc/stratix10/soc/s10_memory_controller.c
+++ b/plat/intel/soc/stratix10/soc/s10_memory_controller.c
@@ -8,6 +8,7 @@
#include <arch_helpers.h>
#include <errno.h>
#include <lib/mmio.h>
+#include <lib/utils.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <platform_def.h>
@@ -403,7 +404,7 @@ void configure_hmc_adaptor_regs(void)
INFO("Scrubbing ECC\n");
/* ECC Scrubbing */
- memset(DRAM_BASE, 0, DRAM_SIZE);
+ zeromem(DRAM_BASE, DRAM_SIZE);
} else {
INFO("ECC is disabled.\n");
}