From 5d1646d90e1f2cceb9f0828f4b28318cd0ec7744 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 12:05:51 +0200 Subject: Adding upstream version 5.10.209. Signed-off-by: Daniel Baumann --- arch/arm/mach-highbank/system.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 arch/arm/mach-highbank/system.c (limited to 'arch/arm/mach-highbank/system.c') diff --git a/arch/arm/mach-highbank/system.c b/arch/arm/mach-highbank/system.c new file mode 100644 index 000000000..b749c4a6d --- /dev/null +++ b/arch/arm/mach-highbank/system.c @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright 2011 Calxeda, Inc. + */ +#include +#include +#include + +#include "core.h" +#include "sysregs.h" + +void highbank_restart(enum reboot_mode mode, const char *cmd) +{ + if (mode == REBOOT_HARD) + highbank_set_pwr_hard_reset(); + else + highbank_set_pwr_soft_reset(); + + while (1) + cpu_do_idle(); +} + -- cgit v1.2.3