diff options
author | Anurag Koul <anurag.koul@arm.com> | 2020-06-09 20:19:25 +0100 |
---|---|---|
committer | jimqui01 <54316584+jimqui01@users.noreply.github.com> | 2020-09-15 17:03:53 +0100 |
commit | 965d0da639b15261e7bd80159812802a6f3d23a9 (patch) | |
tree | efbef3b616e2c8033dc78b069e08d8fb0d136d50 /product/morello | |
parent | 95c692690cb068391aede84bea094b93c2ebb6d6 (diff) |
morello/scp_romfw: enable scp romfw image build
Change-Id: I862e118e48ec578589174d4a0dcaa80686324a10
Signed-off-by: Anurag Koul <anurag.koul@arm.com>
Co-authored-by: Manoj Kumar <manoj.kumar3@arm.com>
Diffstat (limited to 'product/morello')
-rw-r--r-- | product/morello/product.mk | 2 | ||||
-rw-r--r-- | product/morello/scp_romfw/firmware.mk | 29 | ||||
-rw-r--r-- | product/morello/scp_romfw/fmw_memory.h | 30 |
3 files changed, 60 insertions, 1 deletions
diff --git a/product/morello/product.mk b/product/morello/product.mk index c7b17fe9..0876ff87 100644 --- a/product/morello/product.mk +++ b/product/morello/product.mk @@ -6,4 +6,4 @@ # BS_PRODUCT_NAME := morello -BS_FIRMWARE_LIST := scp_ramfw_fvp mcp_ramfw_fvp +BS_FIRMWARE_LIST := scp_ramfw_fvp mcp_ramfw_fvp scp_romfw diff --git a/product/morello/scp_romfw/firmware.mk b/product/morello/scp_romfw/firmware.mk new file mode 100644 index 00000000..46d47a1c --- /dev/null +++ b/product/morello/scp_romfw/firmware.mk @@ -0,0 +1,29 @@ +# +# Arm SCP/MCP Software +# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# +# The order of the modules in the BS_FIRMWARE_MODULES list is the order in which +# the modules are initialized, bound, started during the pre-runtime phase. +# + +BS_FIRMWARE_CPU := cortex-m7 +BS_FIRMWARE_HAS_MULTITHREADING := no +BS_FIRMWARE_HAS_NOTIFICATION := yes +BS_FIRMWARE_MODULE_HEADERS_ONLY := timer \ + power_domain + +BS_FIRMWARE_MODULES := \ + pl011 \ + fip \ + morello_rom \ + clock + +BS_FIRMWARE_SOURCES := \ + config_pl011.c \ + config_fip.c \ + config_morello_rom.c \ + config_clock.c + +include $(BS_DIR)/firmware.mk diff --git a/product/morello/scp_romfw/fmw_memory.h b/product/morello/scp_romfw/fmw_memory.h new file mode 100644 index 00000000..04587ac1 --- /dev/null +++ b/product/morello/scp_romfw/fmw_memory.h @@ -0,0 +1,30 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2018-2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + * + * Description: + * ROM firmware memory layout for the linker script. + */ + +#ifndef FMW_MEMORY_H +#define FMW_MEMORY_H + +#include "morello_scp_system_mmap.h" + +#define FMW_MEM_MODE ARCH_MEM_MODE_DUAL_REGION_RELOCATION + +/* + * ROM memory + */ +#define FMW_MEM0_SIZE SCP_ROM_SIZE +#define FMW_MEM0_BASE SCP_ROM_BASE + +/* + * RAM memory + */ +#define FMW_MEM1_SIZE SCP_RAM1_SIZE +#define FMW_MEM1_BASE SCP_RAM1_BASE + +#endif /* FMW_MEMORY_H */ |