88#include <asm_macros.S>
99#include <mt7622_def.h>
1010
11+ .globl platform_mem_init
1112 .globl plat_secondary_cold_boot_setup
1213 .globl plat_report_exception
13- .globl platform_is_primary_cpu
14+ .globl plat_is_my_cpu_primary
1415 .globl plat_my_core_pos
1516 .globl plat_crash_console_init
1617 .globl plat_crash_console_putc
1718 .globl plat_crash_console_flush
1819 .globl read_cpuectlr
1920 .globl write_cpuectlr
2021
22+ /* --------------------------------------------------------
23+ * void platform_mem_init (void);
24+ *
25+ * Any memory init, relocation to be done before the
26+ * platform boots. Called very early in the boot process.
27+ * --------------------------------------------------------
28+ */
29+ func platform_mem_init
30+ ret
31+ endfunc platform_mem_init
32+
2133 /* -----------------------------------------------------
2234 * void plat_secondary_cold_boot_setup (void);
2335 *
@@ -43,12 +55,13 @@ func write_cpuectlr
4355 ret
4456endfunc write_cpuectlr
4557
46- func platform_is_primary_cpu
58+ func plat_is_my_cpu_primary
59+ mrs x0, mpidr_el1
4760 and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
4861 cmp x0, #MT7622_PRIMARY_CPU
4962 cset x0, eq
5063 ret
51- endfunc platform_is_primary_cpu
64+ endfunc plat_is_my_cpu_primary
5265
5366 /* -----------------------------------------------------
5467 * unsigned int plat_my_core_pos(void);
@@ -102,4 +115,4 @@ endfunc plat_crash_console_putc
102115func plat_crash_console_flush
103116 mov_imm x0, UART_BASE
104117 b console_hsuart_core_flush
105- endfunc plat_crash_console_flush
118+ endfunc plat_crash_console_flush
0 commit comments