Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * SoC-specific setup info |
| 3 | * |
| 4 | * (C) Copyright 2010,2011 |
| 5 | * NVIDIA Corporation <www.nvidia.com> |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <config.h> |
Aneesh V | fd8798b | 2012-03-08 07:20:18 +0000 | [diff] [blame] | 11 | #include <linux/linkage.h> |
Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 12 | |
Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 13 | .align 5 |
Aneesh V | fd8798b | 2012-03-08 07:20:18 +0000 | [diff] [blame] | 14 | ENTRY(reset_cpu) |
Tom Warren | 41b6838 | 2011-01-27 10:58:05 +0000 | [diff] [blame] | 15 | 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 |
| 23 | rstctl: |
| 24 | .word PRM_RSTCTRL |
Aneesh V | fd8798b | 2012-03-08 07:20:18 +0000 | [diff] [blame] | 25 | ENDPROC(reset_cpu) |