aboutsummaryrefslogtreecommitdiff
path: root/mk/config.mk
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-09-19 14:18:26 -0500
committerJérôme Forissier <jerome.forissier@linaro.org>2017-09-27 17:56:27 -0700
commit00da26ece6a20eea9a0f49fb6ae258740a62dadb (patch)
treec00e643ff4197f72cbe677540672e62adc6d73cd /mk/config.mk
parent85ab358f65d303fd9865da549aebc44da195616a (diff)
core: Make core_pos more generic
The function core_pos() assumes 4 cores per cluster, this may not be true for all platforms. Define CFG_CORE_CLUSTER_SHIFT to be =log2(cores/cluster) and allow setting this from platform config. Signed-off-by: Andrew F. Davis <afd@ti.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Diffstat (limited to 'mk/config.mk')
-rw-r--r--mk/config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/config.mk b/mk/config.mk
index 3a2bf0ac..837ccc68 100644
--- a/mk/config.mk
+++ b/mk/config.mk
@@ -262,3 +262,9 @@ CFG_GP_SOCKETS ?= y
# Enable Secure Data Path support in OP-TEE core (TA may be invoked with
# invocation parameters referring to specific secure memories).
CFG_SECURE_DATA_PATH ?= n
+
+# Define the number of cores per cluster used in calculating core position.
+# The cluster number is shifted by this value and added to the core ID,
+# so its value represents log2(cores/cluster).
+# Default is 2**(2) = 4 cores per cluster.
+CFG_CORE_CLUSTER_SHIFT ?= 2