diff options
author | Daniel Boulby <daniel.boulby@arm.com> | 2018-08-14 17:10:06 +0100 |
---|---|---|
committer | Daniel Boulby <daniel.boulby@arm.com> | 2018-08-15 13:39:33 +0100 |
commit | 5eddd22e05c9dcae4023091c38b6f1ef38046ae2 (patch) | |
tree | 2b054941aba3ba601ebf69c8ed845b841b3fb773 /plat/rockchip/common | |
parent | 7e8a891f39acdae8679d2daec22246c678576142 (diff) | |
download | trusted-firmware-a-5eddd22e05c9dcae4023091c38b6f1ef38046ae2.tar.gz |
rockchip: Add plat_is_my_cpu_primary function
This function is required for platforms where
COLD_BOOT_SINGLE_CPU=0 however it was missing from rockchip
platforms
Change-Id: I32a85f226a4f22085a27113903f34bdb6f28dbcc
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Diffstat (limited to 'plat/rockchip/common')
-rw-r--r-- | plat/rockchip/common/aarch64/plat_helpers.S | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plat/rockchip/common/aarch64/plat_helpers.S b/plat/rockchip/common/aarch64/plat_helpers.S index f415f87723..f0136b0d91 100644 --- a/plat/rockchip/common/aarch64/plat_helpers.S +++ b/plat/rockchip/common/aarch64/plat_helpers.S @@ -18,7 +18,7 @@ .globl platform_cpu_warmboot .globl plat_secondary_cold_boot_setup .globl plat_report_exception - .globl platform_is_primary_cpu + .globl plat_is_my_cpu_primary .globl plat_my_core_pos .globl plat_reset_handler .globl plat_panic_handler @@ -73,12 +73,13 @@ cb_panic: b cb_panic endfunc plat_secondary_cold_boot_setup -func platform_is_primary_cpu +func plat_is_my_cpu_primary + mrs x0, mpidr_el1 and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK) cmp x0, #PLAT_RK_PRIMARY_CPU cset x0, eq ret -endfunc platform_is_primary_cpu +endfunc plat_is_my_cpu_primary /* -------------------------------------------------------------------- * void plat_panic_handler(void) |