aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/jz4740/reset.c
blob: 1f9f02e54085b8c0c438a814ad8f7cedfe219c53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}