diff options
author | Soby Mathew <soby.mathew@arm.com> | 2016-11-14 12:25:45 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2017-06-05 13:32:17 +0100 |
commit | c04a3b6c180556ee22c958b74b8c07758b870685 (patch) | |
tree | 05dbe2a7497daffc8ed9818ec02d262ec444f70f /include | |
parent | 2bd26faf62411c75111fea4b23c542865383b068 (diff) |
CSS: Add SCMI driver for SCP
This patch adds the SCMI driver for communicating with SCP. The power
domain management and system power management protocol of the SCMI
specification[1] is implemented in the driver. The SCP power management
abstraction layer for SCMI for CSS power management is also added.
A new buid option `CSS_USE_SCMI_DRIVER` is introduced to select SCMI
driver over SCPI.
[1] ARM System Control and Management Interface v1.0 (SCMI)
Document number: ARM DEN 0056A
Change-Id: I67265615a17e679a2afe810b9b0043711ba09dbb
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/plat/arm/common/plat_arm.h | 3 | ||||
-rw-r--r-- | include/plat/arm/css/common/css_def.h | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/include/plat/arm/common/plat_arm.h b/include/plat/arm/common/plat_arm.h index 79671731..62c0ce7e 100644 --- a/include/plat/arm/common/plat_arm.h +++ b/include/plat/arm/common/plat_arm.h @@ -46,7 +46,7 @@ void arm_setup_page_tables(uintptr_t total_base, * arm_lock_xxx() macros */ #define ARM_INSTANTIATE_LOCK DEFINE_BAKERY_LOCK(arm_lock); - +#define ARM_LOCK_GET_INSTANCE (&arm_lock) /* * These are wrapper macros to the Coherent Memory Bakery Lock API. */ @@ -60,6 +60,7 @@ void arm_setup_page_tables(uintptr_t total_base, * Empty macros for all other BL stages other than BL31 and BL32 */ #define ARM_INSTANTIATE_LOCK +#define ARM_LOCK_GET_INSTANCE 0 #define arm_lock_init() #define arm_lock_get() #define arm_lock_release() diff --git a/include/plat/arm/css/common/css_def.h b/include/plat/arm/css/common/css_def.h index 6f9d6401..4c4dece6 100644 --- a/include/plat/arm/css/common/css_def.h +++ b/include/plat/arm/css/common/css_def.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -48,6 +48,17 @@ CSS_IRQ_SEC_SYS_TIMER /* + * The lower Non-secure MHU channel is being used for SCMI for ARM Trusted + * Firmware. + * TODO: Move SCMI to Secure channel once the migration to SCMI in SCP is + * complete. + */ +#define MHU_CPU_INTR_L_SET_OFFSET 0x108 +#define MHU_CPU_INTR_H_SET_OFFSET 0x128 +#define CSS_SCMI_PAYLOAD_BASE (NSRAM_BASE + 0x500) +#define CSS_SCMI_MHU_DB_REG_OFF MHU_CPU_INTR_L_SET_OFFSET + +/* * SCP <=> AP boot configuration * * The SCP/AP boot configuration is a 32-bit word located at a known offset from |