// SPDX-License-Identifier: GPL-2.0-or-later /* * reset.c: reset support for PNX833X. * * Copyright 2008 NXP Semiconductors * Chris Steel * Daniel Laird * * Based on software written by: * Nikita Youshchenko , based on PNX8550 code. */ #include #include void pnx833x_machine_restart(char *command) { PNX833X_RESET_CONTROL_2 = 0; PNX833X_RESET_CONTROL = 0; } void pnx833x_machine_halt(void) { while (1) __asm__ __volatile__ ("wait"); } void pnx833x_machine_power_off(void) { pnx833x_machine_halt(); }