blob: 4bc0a3f5a119b40aa1af15d92abdaeefca6b977c [file] [log] [blame]
Tom Warren41b68382011-01-27 10:58:05 +00001/*
2 * SoC-specific setup info
3 *
4 * (C) Copyright 2010,2011
5 * NVIDIA Corporation <www.nvidia.com>
6 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Tom Warren41b68382011-01-27 10:58:05 +00008 */
9
10#include <config.h>
Aneesh Vfd8798b2012-03-08 07:20:18 +000011#include <linux/linkage.h>
Tom Warren41b68382011-01-27 10:58:05 +000012
Tom Warren41b68382011-01-27 10:58:05 +000013 .align 5
Aneesh Vfd8798b2012-03-08 07:20:18 +000014ENTRY(reset_cpu)
Tom Warren41b68382011-01-27 10:58:05 +000015 ldr r1, rstctl @ get addr for global reset
16 @ reg
17 ldr r3, [r1]
18 orr r3, r3, #0x10
19 str r3, [r1] @ force reset
20 mov r0, r0
21_loop_forever:
22 b _loop_forever
23rstctl:
24 .word PRM_RSTCTRL
Aneesh Vfd8798b2012-03-08 07:20:18 +000025ENDPROC(reset_cpu)