blob: a211bb3b1a60c775957a01874baeff99bad702a3 [file] [log] [blame]
Tom Warren3f82b1d2011-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 Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Tom Warren3f82b1d2011-01-27 10:58:05 +00008 */
9
10#include <config.h>
11#include <version.h>
Aneesh V74236ac2012-03-08 07:20:18 +000012#include <linux/linkage.h>
Tom Warren3f82b1d2011-01-27 10:58:05 +000013
Tom Warren3f82b1d2011-01-27 10:58:05 +000014 .align 5
Aneesh V74236ac2012-03-08 07:20:18 +000015ENTRY(reset_cpu)
Tom Warren3f82b1d2011-01-27 10:58:05 +000016 ldr r1, rstctl @ get addr for global reset
17 @ reg
18 ldr r3, [r1]
19 orr r3, r3, #0x10
20 str r3, [r1] @ force reset
21 mov r0, r0
22_loop_forever:
23 b _loop_forever
24rstctl:
25 .word PRM_RSTCTRL
Aneesh V74236ac2012-03-08 07:20:18 +000026ENDPROC(reset_cpu)