aboutsummaryrefslogtreecommitdiff
path: root/product/sgm775/scp_romfw/config_bootloader.c
diff options
context:
space:
mode:
authorRonald Cron <ronald.cron@arm.com>2018-06-05 09:31:39 +0200
committerRonald Cron <ronald.cron@arm.com>2018-06-08 11:46:47 +0200
commitb151958dbb2f37383f4d9a1f7802c36008d9fef2 (patch)
treefe20ebfb8c10facbfd028edefe601462ae3ee64c /product/sgm775/scp_romfw/config_bootloader.c
parentfd3027b6fd17a4a33a685adb73f2acfcae9a2ced (diff)
Add support for SGM-775
Co-authored-by: Filipe Rinaldi <filipe.rinaldi@arm.com> Co-authored-by: Paul Beesley <paul.beesley@arm.com> Co-authored-by: Chris Kay <chris.kay@arm.com> Co-authored-by: Elieva Pignat <elieva.pignat@arm.com> Co-authored-by: Pedro Custodio <pedro.krewinkelcustodio@arm.com> Change-Id: Ic7524ad58a7c15d5b055e88a9719b2feee437f1d Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Diffstat (limited to 'product/sgm775/scp_romfw/config_bootloader.c')
-rw-r--r--product/sgm775/scp_romfw/config_bootloader.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/product/sgm775/scp_romfw/config_bootloader.c b/product/sgm775/scp_romfw/config_bootloader.c
new file mode 100644
index 00000000..39db37e2
--- /dev/null
+++ b/product/sgm775/scp_romfw/config_bootloader.c
@@ -0,0 +1,26 @@
+/*
+ * Arm SCP/MCP Software
+ * Copyright (c) 2017-2018, Arm Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <fwk_element.h>
+#include <fwk_macros.h>
+#include <fwk_module.h>
+#include <mod_bootloader.h>
+#include <system_mmap.h>
+#include <system_mmap_scp.h>
+#include <sgm775_sds.h>
+
+static const struct mod_bootloader_config bootloader_module_config = {
+ .source_base = TRUSTED_RAM_BASE,
+ .source_size = 256 * 1024,
+ .destination_base = SCP_RAM_BASE,
+ .destination_size = SCP_RAM_SIZE,
+ .sds_struct_id = SGM775_SDS_BOOTLOADER,
+};
+
+struct fwk_module_config config_bootloader = {
+ .data = &bootloader_module_config,
+};