mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 08:57:58 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
71 lines
1,016 B
ArmAsm
71 lines
1,016 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2012 Nobuhiro Iwamatsu <nobuhiro.Iwamatsu.yj@renesas.com>
|
|
* Copyright (C) 2012 Renesas Solutions Corp.
|
|
*/
|
|
|
|
#include <config.h>
|
|
#include <linux/linkage.h>
|
|
|
|
ENTRY(lowlevel_init)
|
|
ldr r0, =MERAM_BASE
|
|
mov r1, #0x0
|
|
str r1, [r0]
|
|
|
|
mrc p15, 0, r0, c0, c0, 5
|
|
ands r0, r0, #0xF
|
|
beq lowlevel_init__
|
|
b wait_interrupt
|
|
|
|
.pool
|
|
.align 4
|
|
|
|
wait_interrupt:
|
|
#ifdef ICCICR
|
|
ldr r1, =ICCICR
|
|
mov r2, #0x0
|
|
str r2, [r1]
|
|
mov r2, #0xF0
|
|
adds r1, r1, #4 /* ICCPMR */
|
|
str r2, [r1]
|
|
ldr r1, =ICCICR
|
|
mov r2, #0x1
|
|
str r2, [r1]
|
|
#endif
|
|
|
|
wait_loop:
|
|
.long 0xE320F003 /* wfi */
|
|
|
|
ldr r2, [r1, #0xC]
|
|
str r2, [r1, #0x10]
|
|
|
|
ldr r0, =MERAM_BASE
|
|
ldr r2, [r0]
|
|
cmp r2, #0
|
|
movne pc, r2
|
|
|
|
b wait_loop
|
|
|
|
wait_loop_end:
|
|
.pool
|
|
.align 4
|
|
|
|
lowlevel_init__:
|
|
|
|
mov r0, #0x200000
|
|
|
|
loop0:
|
|
subs r0, r0, #1
|
|
bne loop0
|
|
|
|
ldr sp, MERAM_STACK
|
|
b s_init
|
|
|
|
.pool
|
|
.align 4
|
|
|
|
ENDPROC(lowlevel_init)
|
|
.ltorg
|
|
|
|
MERAM_STACK:
|
|
.word LOW_LEVEL_MERAM_STACK
|