Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Scott Branden | 54c8da8 | 2014-08-11 13:58:23 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014 Broadcom Corporation. |
Scott Branden | 54c8da8 | 2014-08-11 13:58:23 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | afb0215 | 2019-12-28 10:45:01 -0700 | [diff] [blame] | 7 | #include <cpu_func.h> |
Scott Branden | 54c8da8 | 2014-08-11 13:58:23 -0700 | [diff] [blame] | 8 | #include <asm/io.h> |
| 9 | |
| 10 | #define CRMU_MAIL_BOX1 0x03024028 |
| 11 | #define CRMU_SOFT_RESET_CMD 0xFFFFFFFF |
| 12 | |
Harald Seiler | 6f14d5f | 2020-12-15 16:47:52 +0100 | [diff] [blame] | 13 | void reset_cpu(void) |
Scott Branden | 54c8da8 | 2014-08-11 13:58:23 -0700 | [diff] [blame] | 14 | { |
| 15 | /* Send soft reset command via Mailbox. */ |
| 16 | writel(CRMU_SOFT_RESET_CMD, CRMU_MAIL_BOX1); |
| 17 | |
| 18 | while (1) |
| 19 | ; /* loop forever till reset */ |
| 20 | } |