arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / mips / lasat / reset.c
blob7c516ed9af15c6290a6fa81e0f6f8bc10d71e8fb
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Thomas Horsten <thh@lasat.com>
4 * Copyright (C) 2000 LASAT Networks A/S.
6 * Reset the LASAT board.
7 */
8 #include <linux/kernel.h>
9 #include <linux/pm.h>
11 #include <asm/reboot.h>
12 #include <asm/lasat/lasat.h>
14 #include "picvue.h"
15 #include "prom.h"
17 static void lasat_machine_restart(char *command);
18 static void lasat_machine_halt(void);
20 /* Used to set machine to boot in service mode via /proc interface */
21 int lasat_boot_to_service;
23 static void lasat_machine_restart(char *command)
25 local_irq_disable();
27 if (lasat_boot_to_service) {
28 *(volatile unsigned int *)0xa0000024 = 0xdeadbeef;
29 *(volatile unsigned int *)0xa00000fc = 0xfedeabba;
31 *lasat_misc->reset_reg = 0xbedead;
32 for (;;) ;
35 static void lasat_machine_halt(void)
37 local_irq_disable();
39 prom_monitor();
40 for (;;) ;
43 void lasat_reboot_setup(void)
45 _machine_restart = lasat_machine_restart;
46 _machine_halt = lasat_machine_halt;
47 pm_power_off = lasat_machine_halt;