1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * SoC-specific setup info 4 * 5 * (C) Copyright 2010,2011 6 * NVIDIA Corporation <www.nvidia.com> 7 */ 8 9#include <config.h> 10#include <linux/linkage.h> 11 12#ifdef CONFIG_ARM64 13 .align 5 14ENTRY(reset_cpu) 15 /* get address for global reset register */ 16 ldr x1, =PRM_RSTCTRL 17 ldr w3, [x1] 18 /* force reset */ 19 orr w3, w3, #0x10 20 str w3, [x1] 21 mov w0, w0 221: 23 b 1b 24ENDPROC(reset_cpu) 25#else 26 .align 5 27ENTRY(reset_cpu) 28 ldr r1, rstctl @ get addr for global reset 29 @ reg 30 ldr r3, [r1] 31 orr r3, r3, #0x10 32 str r3, [r1] @ force reset 33 mov r0, r0 34_loop_forever: 35 b _loop_forever 36rstctl: 37 .word PRM_RSTCTRL 38ENDPROC(reset_cpu) 39#endif 40