ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/marvell/linux/arch/mips/jz4740/reset.c b/marvell/linux/arch/mips/jz4740/reset.c
new file mode 100644
index 0000000..1f9f02e
--- /dev/null
+++ b/marvell/linux/arch/mips/jz4740/reset.c
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ *  Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
+ */
+
+#include <asm/reboot.h>
+
+#include "reset.h"
+
+static void jz4740_halt(void)
+{
+	while (1) {
+		__asm__(".set push;\n"
+			".set mips3;\n"
+			"wait;\n"
+			".set pop;\n"
+		);
+	}
+}
+
+void jz4740_reset_init(void)
+{
+	_machine_halt = jz4740_halt;
+}