summaryrefslogtreecommitdiff
path: root/include/plat/arm/css/common
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2015-04-29 13:02:46 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2015-06-09 11:49:34 +0100
commit9255da5f63065a4a3fdcd115ea0f1047275bab9c (patch)
treec67ab70d7f9360ff8f42407a8717b4b8d6679d69 /include/plat/arm/css/common
parentde975e85ff4a3712fc8ff8aa5556e0ec0a11e63c (diff)
CSS: Clarify what the SCP boot config is
Add a comment explaining what the SCP boot configuration information is on CSS based platforms like Juno. Also express its address relatively to the base of the Trusted SRAM rather than hard-coding it. Change-Id: I82cf708a284c8b8212933074ea8c37bdf48b403b
Diffstat (limited to 'include/plat/arm/css/common')
-rw-r--r--include/plat/arm/css/common/css_def.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/plat/arm/css/common/css_def.h b/include/plat/arm/css/common/css_def.h
index 056c00df..12e75413 100644
--- a/include/plat/arm/css/common/css_def.h
+++ b/include/plat/arm/css/common/css_def.h
@@ -66,8 +66,17 @@
#define CSS_IRQ_TZC 80
#define CSS_IRQ_TZ_WDOG 86
-/* SCP <=> AP boot configuration */
-#define SCP_BOOT_CFG_ADDR 0x04000080
+/*
+ * SCP <=> AP boot configuration
+ *
+ * The SCP/AP boot configuration is a 32-bit word located at a known offset from
+ * the start of the Trusted SRAM. Part of this configuration is which CPU is the
+ * primary, according to the shift and mask definitions below.
+ *
+ * Note that the value stored at this address is only valid at boot time, before
+ * the BL3-0 image is transferred to SCP.
+ */
+#define SCP_BOOT_CFG_ADDR (ARM_TRUSTED_SRAM_BASE + 0x80)
#define PRIMARY_CPU_SHIFT 8
#define PRIMARY_CPU_BIT_WIDTH 4