]> git.sur5r.net Git - u-boot/blob - arch/arm/cpu/armv7/omap-common/lowlevel_init.S
Merge branch 'master' of git://git.denx.de/u-boot-uniphier
[u-boot] / arch / arm / cpu / armv7 / omap-common / lowlevel_init.S
1 /*
2  * Board specific setup info
3  *
4  * (C) Copyright 2010
5  * Texas Instruments, <www.ti.com>
6  *
7  * Author :
8  *      Aneesh V        <aneesh@ti.com>
9  *
10  * SPDX-License-Identifier:     GPL-2.0+
11  */
12
13 #include <config.h>
14 #include <asm/arch/omap.h>
15 #include <asm/omap_common.h>
16 #include <asm/arch/spl.h>
17 #include <linux/linkage.h>
18
19 #ifndef CONFIG_OMAP34XX
20 ENTRY(save_boot_params)
21         ldr     r1, =OMAP_SRAM_SCRATCH_BOOT_PARAMS
22         str     r0, [r1]
23         b       save_boot_params_ret
24 ENDPROC(save_boot_params)
25 #endif
26
27 ENTRY(omap_smc1)
28         PUSH    {r4-r12, lr}    @ save registers - ROM code may pollute
29                                 @ our registers
30         MOV     r12, r0         @ Service
31         MOV     r0, r1          @ Argument
32         DSB
33         DMB
34         .word   0xe1600070      @ SMC #0 - hand assembled for GCC versions
35                                 @ call ROM Code API for the service requested
36
37         POP     {r4-r12, pc}
38 ENDPROC(omap_smc1)