blob: c3be33124c6af1a80109bea6dba715d3094cfdbf [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Scott Branden59f56be2014-08-11 13:58:24 -07002/*
3 * Copyright 2014 Broadcom Corporation.
Scott Branden59f56be2014-08-11 13:58:24 -07004 */
5
Simon Glassafb02152019-12-28 10:45:01 -07006#include <cpu_func.h>
Scott Branden59f56be2014-08-11 13:58:24 -07007#include <asm/io.h>
8
9#define CRU_RESET_OFFSET 0x1803F184
10
Harald Seiler6f14d5f2020-12-15 16:47:52 +010011void reset_cpu(void)
Scott Branden59f56be2014-08-11 13:58:24 -070012{
13 /* Reset the cpu by setting software reset request bit */
14 writel(0x1, CRU_RESET_OFFSET);
15
16 while (1)
17 ; /* loop forever till reset */
18}