File tree Expand file tree Collapse file tree 10 files changed +21
-41
lines changed
Expand file tree Collapse file tree 10 files changed +21
-41
lines changed Original file line number Diff line number Diff line change 1111 .globl platform_mem_init
1212 .globl plat_secondary_cold_boot_setup
1313 .globl plat_report_exception
14- .globl platform_is_primary_cpu
14+ .globl plat_is_my_cpu_primary
1515 .globl plat_my_core_pos
1616 .globl plat_crash_console_init
1717 .globl plat_crash_console_putc
@@ -55,12 +55,13 @@ func write_cpuectlr
5555 ret
5656endfunc write_cpuectlr
5757
58- func platform_is_primary_cpu
58+ func plat_is_my_cpu_primary
59+ mrs x0, mpidr_el1
5960 and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
6061 cmp x0, #MT7622_PRIMARY_CPU
6162 cset x0, eq
6263 ret
63- endfunc platform_is_primary_cpu
64+ endfunc plat_is_my_cpu_primary
6465
6566 /* -----------------------------------------------------
6667 * unsigned int plat_my_core_pos(void);
@@ -114,4 +115,4 @@ endfunc plat_crash_console_putc
114115func plat_crash_console_flush
115116 mov_imm x0, UART_BASE
116117 b console_hsuart_core_flush
117- endfunc plat_crash_console_flush
118+ endfunc plat_crash_console_flush
Original file line number Diff line number Diff line change @@ -31,11 +31,6 @@ void bl2_el3_plat_arch_setup(void)
3131{
3232}
3333
34- bool plat_is_my_cpu_primary (void )
35- {
36- return true;
37- }
38-
3934const struct initcall bl2_initcalls [] = {
4035 INITCALL (plat_mt_cpuxgpt_init ),
4136 INITCALL (generic_delay_timer_init ),
Original file line number Diff line number Diff line change 1111 .globl platform_mem_init
1212 .globl plat_secondary_cold_boot_setup
1313 .globl plat_report_exception
14- .globl platform_is_primary_cpu
14+ .globl plat_is_my_cpu_primary
1515 .globl plat_my_core_pos
1616 .globl plat_crash_console_init
1717 .globl plat_crash_console_putc
@@ -55,12 +55,13 @@ func write_cpuectlr
5555 ret
5656endfunc write_cpuectlr
5757
58- func platform_is_primary_cpu
58+ func plat_is_my_cpu_primary
59+ mrs x0, mpidr_el1
5960 and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
6061 cmp x0, #PRIMARY_CPU
6162 cset x0, eq
6263 ret
63- endfunc platform_is_primary_cpu
64+ endfunc plat_is_my_cpu_primary
6465
6566 /* -----------------------------------------------------
6667 * unsigned int plat_my_core_pos(void);
Original file line number Diff line number Diff line change @@ -59,11 +59,6 @@ void bl2_el3_plat_arch_setup(void)
5959{
6060}
6161
62- bool plat_is_my_cpu_primary (void )
63- {
64- return true;
65- }
66-
6762const struct initcall bl2_initcalls [] = {
6863 INITCALL (mtk_timer_init ),
6964 INITCALL (generic_delay_timer_init ),
Original file line number Diff line number Diff line change 1111 .globl platform_mem_init
1212 .globl plat_secondary_cold_boot_setup
1313 .globl plat_report_exception
14- .globl platform_is_primary_cpu
14+ .globl plat_is_my_cpu_primary
1515 .globl plat_my_core_pos
1616 .globl plat_crash_console_init
1717 .globl plat_crash_console_putc
@@ -55,12 +55,13 @@ func write_cpuectlr
5555 ret
5656endfunc write_cpuectlr
5757
58- func platform_is_primary_cpu
58+ func plat_is_my_cpu_primary
59+ mrs x0, mpidr_el1
5960 and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
6061 cmp x0, #PRIMARY_CPU
6162 cset x0, eq
6263 ret
63- endfunc platform_is_primary_cpu
64+ endfunc plat_is_my_cpu_primary
6465
6566 /* -----------------------------------------------------
6667 * unsigned int plat_my_core_pos(void);
Original file line number Diff line number Diff line change @@ -83,11 +83,6 @@ void bl2_el3_plat_arch_setup(void)
8383{
8484}
8585
86- bool plat_is_my_cpu_primary (void )
87- {
88- return true;
89- }
90-
9186const struct initcall bl2_initcalls [] = {
9287 INITCALL (mtk_timer_init ),
9388 INITCALL (generic_delay_timer_init ),
Original file line number Diff line number Diff line change 1111 .globl platform_mem_init
1212 .globl plat_secondary_cold_boot_setup
1313 .globl plat_report_exception
14- .globl platform_is_primary_cpu
14+ .globl plat_is_my_cpu_primary
1515 .globl plat_my_core_pos
1616 .globl plat_crash_console_init
1717 .globl plat_crash_console_putc
@@ -54,12 +54,13 @@ func write_cpuectlr
5454 ret
5555endfunc write_cpuectlr
5656
57- func platform_is_primary_cpu
57+ func plat_is_my_cpu_primary
58+ mrs x0, mpidr_el1
5859 and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
5960 cmp x0, #PRIMARY_CPU
6061 cset x0, eq
6162 ret
62- endfunc platform_is_primary_cpu
63+ endfunc plat_is_my_cpu_primary
6364
6465 /* -----------------------------------------------------
6566 * unsigned int plat_my_core_pos(void);
Original file line number Diff line number Diff line change @@ -188,11 +188,6 @@ void bl2_el3_plat_arch_setup(void)
188188 generic_delay_timer_init ();
189189}
190190
191- bool plat_is_my_cpu_primary (void )
192- {
193- return true;
194- }
195-
196191const struct initcall bl2_initcalls [] = {
197192 INITCALL (mtk_wdt_init ),
198193 INITCALL (mtk_disable_PGD ),
Original file line number Diff line number Diff line change 1111 .globl platform_mem_init
1212 .globl plat_secondary_cold_boot_setup
1313 .globl plat_report_exception
14- .globl platform_is_primary_cpu
14+ .globl plat_is_my_cpu_primary
1515 .globl plat_my_core_pos
1616 .globl plat_crash_console_init
1717 .globl plat_crash_console_putc
@@ -54,12 +54,13 @@ func write_cpuectlr
5454 ret
5555endfunc write_cpuectlr
5656
57- func platform_is_primary_cpu
57+ func plat_is_my_cpu_primary
58+ mrs x0, mpidr_el1
5859 and x0, x0, #(MPIDR_CLUSTER_MASK | MPIDR_CPU_MASK)
5960 cmp x0, #PRIMARY_CPU
6061 cset x0, eq
6162 ret
62- endfunc platform_is_primary_cpu
63+ endfunc plat_is_my_cpu_primary
6364
6465 /* -----------------------------------------------------
6566 * unsigned int plat_my_core_pos(void);
Original file line number Diff line number Diff line change @@ -174,11 +174,6 @@ void bl2_el3_plat_arch_setup(void)
174174 generic_delay_timer_init ();
175175}
176176
177- bool plat_is_my_cpu_primary (void )
178- {
179- return true;
180- }
181-
182177const struct initcall bl2_initcalls [] = {
183178 INITCALL (mtk_wdt_init ),
184179 INITCALL (mtk_disable_PGD ),
You can’t perform that action at this time.
0 commit comments