xref: /OK3568_Linux_fs/kernel/arch/arm/mach-iop32x/restart.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * restart.c
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2001 MontaVista Software, Inc.
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun #include <asm/system_misc.h>
8*4882a593Smuzhiyun #include "hardware.h"
9*4882a593Smuzhiyun #include "iop3xx.h"
10*4882a593Smuzhiyun 
iop3xx_restart(enum reboot_mode mode,const char * cmd)11*4882a593Smuzhiyun void iop3xx_restart(enum reboot_mode mode, const char *cmd)
12*4882a593Smuzhiyun {
13*4882a593Smuzhiyun 	*IOP3XX_PCSR = 0x30;
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun 	/* Jump into ROM at address 0 */
16*4882a593Smuzhiyun 	soft_restart(0);
17*4882a593Smuzhiyun }
18