blob: 1f9f02e54085b8c0c438a814ad8f7cedfe219c53 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001// SPDX-License-Identifier: GPL-2.0-or-later
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
5
6#include <asm/reboot.h>
7
8#include "reset.h"
9
10static 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
21void jz4740_reset_init(void)
22{
23 _machine_halt = jz4740_halt;
24}