]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/omap-common/lowlevel_init.S
Add GPL-2.0+ SPDX-License-Identifier to source files
[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 ENTRY(save_boot_params)
20         ldr     r1, =OMAP_SRAM_SCRATCH_BOOT_PARAMS
21         str     r0, [r1]
22         bx      lr
23 ENDPROC(save_boot_params)
24
25 ENTRY(set_pl310_ctrl_reg)
26         PUSH    {r4-r11, lr}    @ save registers - ROM code may pollute
27                                 @ our registers
28         LDR     r12, =0x102     @ Set PL310 control register - value in R0
29         .word   0xe1600070      @ SMC #0 - hand assembled because -march=armv5
30                                 @ call ROM Code API to set control register
31         POP     {r4-r11, pc}
32 ENDPROC(set_pl310_ctrl_reg)