mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 14:25:56 +00:00

As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
19 lines
364 B
C
19 lines
364 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2014 Broadcom Corporation.
|
|
*/
|
|
|
|
#include <cpu_func.h>
|
|
#include <asm/io.h>
|
|
|
|
#define CRMU_MAIL_BOX1 0x03024028
|
|
#define CRMU_SOFT_RESET_CMD 0xFFFFFFFF
|
|
|
|
void reset_cpu(void)
|
|
{
|
|
/* Send soft reset command via Mailbox. */
|
|
writel(CRMU_SOFT_RESET_CMD, CRMU_MAIL_BOX1);
|
|
|
|
while (1)
|
|
; /* loop forever till reset */
|
|
}
|