aboutsummaryrefslogtreecommitdiff
path: root/plat/rockchip
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-07-05 12:20:44 +0200
committerHeiko Stuebner <heiko.stuebner@theobroma-systems.com>2020-06-09 22:01:43 +0200
commit198a705f6ecf3457af2b2983e47b0e23ea6a45c5 (patch)
treeba06da3a00f05e584311b5559f4315a2aa2850bf /plat/rockchip
parent967a6d162d9dc1c5ae154f289bcdecc03cb9eb7c (diff)
downloadtrusted-firmware-a-198a705f6ecf3457af2b2983e47b0e23ea6a45c5.tar.gz
rockchip: rk3368: fix PLAT_RK_CLST_TO_CPUID_SHIFT
The RK3368 has two clusters of 4 cores and it's cluster id starts at bit 8 of the MPIDR. To convert from the cluster id (0 or 1) to the lowest CPU-ID in the respective cluster, we thus need to shift by 6 (i.e. shift by 8 to extract the cluster-id and multiply by 4). This change is required to ensure the PSCI support can index the per-cpu entry-address array correctly. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com> Change-Id: I64a76038f090a85a47067f09f750e96e3946e756
Diffstat (limited to 'plat/rockchip')
-rw-r--r--plat/rockchip/rk3368/include/platform_def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/rockchip/rk3368/include/platform_def.h b/plat/rockchip/rk3368/include/platform_def.h
index 6fcf2ba82d..519a025c92 100644
--- a/plat/rockchip/rk3368/include/platform_def.h
+++ b/plat/rockchip/rk3368/include/platform_def.h
@@ -48,7 +48,7 @@
PLATFORM_CLUSTER_COUNT + \
PLATFORM_CORE_COUNT)
-#define PLAT_RK_CLST_TO_CPUID_SHIFT 8
+#define PLAT_RK_CLST_TO_CPUID_SHIFT 6
#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL2