summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2015-07-10 17:33:26 +0100
committerAchin Gupta <achin.gupta@arm.com>2015-08-13 23:48:07 +0100
commita6bd5ffbb0b8e4c767190a69ed07f3db0a8052d8 (patch)
tree88eb9cc4a8aa672600ca88ce81f4bcb0413f74e0
parent804040d106184a93a9fe188743d1d8a8571dea71 (diff)
PSCI: Pool platform_mem_init() in common ARM platforms code
Now that the FVP mailbox is no longer zeroed, the function platform_mem_init() does nothing both on FVP and on Juno. Therefore, this patch pools it as the default implementation on ARM platforms. Change-Id: I007220f4531f15e8b602c3368a1129a5e3a38d91
-rw-r--r--plat/arm/board/fvp/aarch64/fvp_helpers.S13
-rw-r--r--plat/arm/common/aarch64/arm_helpers.S10
-rw-r--r--plat/arm/css/common/aarch64/css_helpers.S12
3 files changed, 10 insertions, 25 deletions
diff --git a/plat/arm/board/fvp/aarch64/fvp_helpers.S b/plat/arm/board/fvp/aarch64/fvp_helpers.S
index 9cf3c73c..ec5ec8ef 100644
--- a/plat/arm/board/fvp/aarch64/fvp_helpers.S
+++ b/plat/arm/board/fvp/aarch64/fvp_helpers.S
@@ -38,7 +38,6 @@
.globl plat_secondary_cold_boot_setup
.globl plat_get_my_entrypoint
- .globl platform_mem_init
.globl plat_is_my_cpu_primary
.macro fvp_choose_gicmmap param1, param2, x_tmp, w_tmp, res
@@ -156,18 +155,6 @@ _panic:
endfunc plat_get_my_entrypoint
- /* ---------------------------------------------------------------------
- * void platform_mem_init (void);
- *
- * Nothing to do on FVP, the Trusted SRAM is available straight away
- * after reset.
- * ---------------------------------------------------------------------
- */
-func platform_mem_init
- ret
-endfunc platform_mem_init
-
-
func plat_is_my_cpu_primary
mrs x0, mpidr_el1
and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
diff --git a/plat/arm/common/aarch64/arm_helpers.S b/plat/arm/common/aarch64/arm_helpers.S
index daf08faa..87179dae 100644
--- a/plat/arm/common/aarch64/arm_helpers.S
+++ b/plat/arm/common/aarch64/arm_helpers.S
@@ -34,6 +34,7 @@
.weak plat_my_core_pos
.globl plat_crash_console_init
.globl plat_crash_console_putc
+ .globl platform_mem_init
/* -----------------------------------------------------
@@ -86,3 +87,12 @@ func plat_crash_console_putc
mov_imm x1, PLAT_ARM_CRASH_UART_BASE
b console_core_putc
endfunc plat_crash_console_putc
+
+ /* ---------------------------------------------------------------------
+ * We don't need to carry out any memory initialization on ARM
+ * platforms. The Secure RAM is accessible straight away.
+ * ---------------------------------------------------------------------
+ */
+func platform_mem_init
+ ret
+endfunc platform_mem_init
diff --git a/plat/arm/css/common/aarch64/css_helpers.S b/plat/arm/css/common/aarch64/css_helpers.S
index 478d5cf2..5d5bf863 100644
--- a/plat/arm/css/common/aarch64/css_helpers.S
+++ b/plat/arm/css/common/aarch64/css_helpers.S
@@ -34,7 +34,6 @@
.weak plat_secondary_cold_boot_setup
.weak plat_get_my_entrypoint
- .weak platform_mem_init
.globl plat_arm_calc_core_pos
.weak plat_is_my_cpu_primary
@@ -90,17 +89,6 @@ func plat_arm_calc_core_pos
endfunc plat_arm_calc_core_pos
/* -----------------------------------------------------
- * void platform_mem_init(void);
- *
- * We don't need to carry out any memory initialization
- * on CSS platforms. The Secure RAM is accessible straight away.
- * -----------------------------------------------------
- */
-func platform_mem_init
- ret
-endfunc platform_mem_init
-
- /* -----------------------------------------------------
* unsigned int plat_is_my_cpu_primary (void);
*
* Find out whether the current cpu is the primary