Path: blob/master/arch/arm/mach-orion5x/include/mach/system.h
10820 views
/*1* arch/arm/mach-orion5x/include/mach/system.h2*3* Tzachi Perelstein <[email protected]>4*5* This file is licensed under the terms of the GNU General Public6* License version 2. This program is licensed "as is" without any7* warranty of any kind, whether express or implied.8*/910#ifndef __ASM_ARCH_SYSTEM_H11#define __ASM_ARCH_SYSTEM_H1213#include <mach/bridge-regs.h>1415static inline void arch_idle(void)16{17cpu_do_idle();18}1920static inline void arch_reset(char mode, const char *cmd)21{22/*23* Enable and issue soft reset24*/25orion5x_setbits(RSTOUTn_MASK, (1 << 2));26orion5x_setbits(CPU_SOFT_RESET, 1);27mdelay(200);28orion5x_clrbits(CPU_SOFT_RESET, 1);29}303132#endif333435