blob: 63992fd870184bf723f50aaf086c2a4da599c3e9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Scott Branden54c8da82014-08-11 13:58:23 -07002/*
3 * Copyright 2014 Broadcom Corporation.
Scott Branden54c8da82014-08-11 13:58:23 -07004 */
5
6#include <common.h>
Simon Glassafb02152019-12-28 10:45:01 -07007#include <cpu_func.h>
Scott Branden54c8da82014-08-11 13:58:23 -07008#include <asm/io.h>
9
10#define CRMU_MAIL_BOX1 0x03024028
11#define CRMU_SOFT_RESET_CMD 0xFFFFFFFF
12
Harald Seiler6f14d5f2020-12-15 16:47:52 +010013void reset_cpu(void)
Scott Branden54c8da82014-08-11 13:58:23 -070014{
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}