mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 04:35:17 +07:00
dbf5ebee09
Based on 1 normalized pattern(s): this code is licenced under the gplv2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 1 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Armijn Hemel <armijn@tjaldur.nl> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531190114.383521217@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
39 lines
961 B
ArmAsm
39 lines
961 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Bootloader to resume MIO A701
|
|
*
|
|
* 2007-1-12 Robert Jarzmik
|
|
*/
|
|
|
|
#include <linux/linkage.h>
|
|
#include <asm/assembler.h>
|
|
|
|
/*
|
|
* Note: Yes, part of the following code is located into the .data section.
|
|
* This is to allow jumpaddr to be accessed with a relative load
|
|
* while we can't rely on any MMU translation. We could have put
|
|
* sleep_save_sp in the .text section as well, but some setups might
|
|
* insist on it to be truly read-only.
|
|
*/
|
|
.data
|
|
.align 2
|
|
ENTRY(mioa701_bootstrap)
|
|
0:
|
|
b 1f
|
|
ENTRY(mioa701_jumpaddr)
|
|
.word 0x40f00008 @ PSPR in no-MMU mode
|
|
1:
|
|
mov r0, #0xa0000000 @ Don't suppose memory access works
|
|
orr r0, r0, #0x00200000 @ even if it's supposed to
|
|
orr r0, r0, #0x0000b000
|
|
mov r1, #0
|
|
str r1, [r0] @ Early disable resume for next boot
|
|
ldr r0, mioa701_jumpaddr @ (Murphy's Law)
|
|
ldr r0, [r0]
|
|
ret r0
|
|
2:
|
|
|
|
ENTRY(mioa701_bootstrap_lg)
|
|
.data
|
|
.align 2
|
|
.word 2b-0b
|