]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/omap-common/lowlevel_init.S
karo: fdt: fix panel-dpi support
[karo-tx-uboot.git] / 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 #ifdef CONFIG_SPL
20 ENTRY(save_boot_params)
21
22         ldr     r1, =OMAP_SRAM_SCRATCH_BOOT_PARAMS
23         str     r0, [r1]
24         b       save_boot_params_ret
25 ENDPROC(save_boot_params)
26 #endif
27
28 ENTRY(omap_smc1)
29         PUSH    {r4-r12, lr}    @ save registers - ROM code may pollute
30                                 @ our registers
31         MOV     r12, r0         @ Service
32         MOV     r0, r1          @ Argument
33         DSB
34         DMB
35 #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6 && defined(__ARM_ARCH_7A__)
36         .arch_extension sec
37         smc     #0              @ call ROM Code API to set control register
38 #else
39         .word   0xe1600070
40 #endif
41         POP     {r4-r12, pc}
42 ENDPROC(omap_smc1)