diff options
author | Amit Daniel Kachhap <amit.kachhap@arm.com> | 2018-07-23 14:11:10 +0530 |
---|---|---|
committer | ronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com> | 2018-10-18 17:22:34 +0000 |
commit | e7ce3de842048255426cbf8847a8a86ab0e3d22b (patch) | |
tree | 9f7cbaeac53f7e90a72bbb8a10b52bfc3304ae00 /product/sgi575 | |
parent | a8ba268e7e7b93b798313ab6d70810491bf9caca (diff) |
sgi575/scp_ramfw: Enable AP Context module
Change-Id: If1524e352b8ec8d72c1d71fdf15c8866b2ee4a37
Signed-off-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
Diffstat (limited to 'product/sgi575')
-rw-r--r-- | product/sgi575/scp_ramfw/config_apcontext.c | 26 | ||||
-rw-r--r-- | product/sgi575/scp_ramfw/firmware.mk | 4 |
2 files changed, 29 insertions, 1 deletions
diff --git a/product/sgi575/scp_ramfw/config_apcontext.c b/product/sgi575/scp_ramfw/config_apcontext.c new file mode 100644 index 00000000..12818b9d --- /dev/null +++ b/product/sgi575/scp_ramfw/config_apcontext.c @@ -0,0 +1,26 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2018, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#include <fwk_module.h> +#include <fwk_module_idx.h> +#include <mod_apcontext.h> +#include <scp_software_mmap.h> +#include <config_clock.h> + +/* + * AP Context module configuration + */ +static const struct mod_apcontext_config apcontext_data = { + .base = SCP_AP_CONTEXT_BASE, + .size = SCP_AP_CONTEXT_SIZE, + .clock_id = FWK_ID_ELEMENT_INIT(FWK_MODULE_IDX_CLOCK, + CLOCK_IDX_INTERCONNECT), +}; + +struct fwk_module_config config_apcontext = { + .data = &apcontext_data, +}; diff --git a/product/sgi575/scp_ramfw/firmware.mk b/product/sgi575/scp_ramfw/firmware.mk index 5798444a..a268ebbc 100644 --- a/product/sgi575/scp_ramfw/firmware.mk +++ b/product/sgi575/scp_ramfw/firmware.mk @@ -15,6 +15,7 @@ BS_FIRMWARE_MODULES := \ pl011 \ log \ cmn600 \ + apcontext \ power_domain \ clock \ dmc620 \ @@ -45,6 +46,7 @@ BS_FIRMWARE_SOURCES := \ config_system_pll.c \ config_pik_clock.c \ config_css_clock.c \ - config_timer.c + config_timer.c \ + config_apcontext.c include $(BS_DIR)/firmware.mk |