blob: b749c4a6ddf5da6961197e3ae80fbdd7ed1dda11 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001// SPDX-License-Identifier: GPL-2.0-only
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright 2011 Calxeda, Inc.
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5#include <linux/io.h>
6#include <asm/proc-fns.h>
7#include <linux/reboot.h>
8
9#include "core.h"
10#include "sysregs.h"
11
12void highbank_restart(enum reboot_mode mode, const char *cmd)
13{
14 if (mode == REBOOT_HARD)
15 highbank_set_pwr_hard_reset();
16 else
17 highbank_set_pwr_soft_reset();
18
19 while (1)
20 cpu_do_idle();
21}
22