2 * Board specific setup info
5 * Texas Instruments, <www.ti.com>
8 * Aneesh V <aneesh@ti.com>
10 * SPDX-License-Identifier: GPL-2.0+
14 #include <asm/arch/omap.h>
15 #include <asm/omap_common.h>
16 #include <asm/arch/spl.h>
17 #include <linux/linkage.h>
22 ENTRY(save_boot_params)
23 ldr r1, =OMAP_SRAM_SCRATCH_BOOT_PARAMS
25 b save_boot_params_ret
26 ENDPROC(save_boot_params)
30 push {r4-r12, lr} @ save registers - ROM code may pollute
37 smc 0 @ SMC #0 to enter monitor mode
38 @ call ROM Code API for the service requested
43 push {r4-r12, lr} @ save registers - ROM code may pollute
45 mov r6, #0xFF @ Indicate new Task call
46 mov r12, #0x00 @ Secure Service ID in R12
50 smc 0 @ SMC #0 to enter monitor mode
52 b omap_smc_sec_end @ exit at end of the service execution
55 @ In case of IRQ happening in Secure, then ARM will branch here.
56 @ At that moment, IRQ will be pending and ARM will jump to Non Secure
62 smc 0 @ SMC #0 to enter monitor mode