blob: 1f9f02e54085b8c0c438a814ad8f7cedfe219c53 [file] [log] [blame]
Thomas Gleixnera912e802019-05-27 08:55:00 +02001// SPDX-License-Identifier: GPL-2.0-or-later
Lars-Peter Clausenc863a232010-06-19 04:08:11 +00002/*
3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
Lars-Peter Clausenc863a232010-06-19 04:08:11 +00004 */
5
Lars-Peter Clausenc863a232010-06-19 04:08:11 +00006#include <asm/reboot.h>
7
Maarten ter Huurneea3952e2012-03-30 16:18:57 +02008#include "reset.h"
Maarten ter Huurneea3952e2012-03-30 16:18:57 +02009
Lars-Peter Clausenc863a232010-06-19 04:08:11 +000010static void jz4740_halt(void)
11{
12 while (1) {
13 __asm__(".set push;\n"
14 ".set mips3;\n"
15 "wait;\n"
16 ".set pop;\n"
17 );
18 }
19}
20
Lars-Peter Clausenc863a232010-06-19 04:08:11 +000021void jz4740_reset_init(void)
22{
Lars-Peter Clausenc863a232010-06-19 04:08:11 +000023 _machine_halt = jz4740_halt;
Lars-Peter Clausenc863a232010-06-19 04:08:11 +000024}