diff options
author | Anurag Koul <anurag.koul@arm.com> | 2020-06-15 18:00:06 +0100 |
---|---|---|
committer | jimqui01 <54316584+jimqui01@users.noreply.github.com> | 2020-09-15 17:03:53 +0100 |
commit | a4fb7879fe37934f35eac269b58a1a53c8787c0e (patch) | |
tree | e28ab8947c95e126267836f00e1d4635d7d84b2e /product/morello | |
parent | 3df22fb0145a7ec98f73d8978ab6e7dcf4457f4e (diff) |
morello/scp_romfw: add scp_romfw config files
Change-Id: I860182e537cd10f8cb08ca781fe13ec13fc19bc0
Signed-off-by: Anurag Koul <anurag.koul@arm.com>
Diffstat (limited to 'product/morello')
-rw-r--r-- | product/morello/scp_romfw/config_clock.c | 10 | ||||
-rw-r--r-- | product/morello/scp_romfw/config_fip.c | 19 | ||||
-rw-r--r-- | product/morello/scp_romfw/config_pl011.c | 32 | ||||
-rw-r--r-- | product/morello/scp_romfw/fmw_cmsis.h | 13 |
4 files changed, 74 insertions, 0 deletions
diff --git a/product/morello/scp_romfw/config_clock.c b/product/morello/scp_romfw/config_clock.c new file mode 100644 index 00000000..4afc1846 --- /dev/null +++ b/product/morello/scp_romfw/config_clock.c @@ -0,0 +1,10 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include <fwk_module.h> + +const struct fwk_module_config config_clock = { 0 }; diff --git a/product/morello/scp_romfw/config_fip.c b/product/morello/scp_romfw/config_fip.c new file mode 100644 index 00000000..703dce33 --- /dev/null +++ b/product/morello/scp_romfw/config_fip.c @@ -0,0 +1,19 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2018-2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "morello_scp_system_mmap.h" + +#include <mod_fip.h> + +#include <fwk_module.h> + +const struct fwk_module_config config_fip = { + .data = &((struct mod_fip_config){ + .fip_base_address = SCP_QSPI_FLASH_BASE_ADDR, + .fip_nvm_size = SCP_QSPI_FLASH_SIZE, + }) +}; diff --git a/product/morello/scp_romfw/config_pl011.c b/product/morello/scp_romfw/config_pl011.c new file mode 100644 index 00000000..cf7c0e91 --- /dev/null +++ b/product/morello/scp_romfw/config_pl011.c @@ -0,0 +1,32 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include "morello_scp_mmap.h" +#include "morello_system_clock.h" + +#include <mod_pl011.h> + +#include <fwk_element.h> +#include <fwk_id.h> +#include <fwk_module.h> + +struct fwk_module_config config_pl011 = { + .elements = FWK_MODULE_STATIC_ELEMENTS({ + [0] = { + .name = "SCP UART", + .data = + &(struct mod_pl011_element_cfg){ + .reg_base = SCP_UART_BASE, + .baud_rate_bps = 115200, + .clock_rate_hz = CLOCK_RATE_REFCLK, + .clock_id = FWK_ID_NONE_INIT, + }, + }, + + [1] = { 0 }, + }), +}; diff --git a/product/morello/scp_romfw/fmw_cmsis.h b/product/morello/scp_romfw/fmw_cmsis.h new file mode 100644 index 00000000..691120c1 --- /dev/null +++ b/product/morello/scp_romfw/fmw_cmsis.h @@ -0,0 +1,13 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef FMW_CMSIS_H +#define FMW_CMSIS_H + +#include <fmw_cmsis_scp.h> + +#endif /* FMW_CMSIS_H */ |