Path: blob/master/arch/arm/mach-ixp4xx/include/mach/system.h
17653 views
/*1* arch/arm/mach-ixp4xx/include/mach/system.h2*3* Copyright (C) 2002 Intel Corporation.4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9*/1011#include <mach/hardware.h>1213static inline void arch_idle(void)14{15/* ixp4xx does not implement the XScale PWRMODE register,16* so it must not call cpu_do_idle() here.17*/18#if 019cpu_do_idle();20#endif21}222324static inline void arch_reset(char mode, const char *cmd)25{26if ( 1 && mode == 's') {27/* Jump into ROM at address 0 */28cpu_reset(0);29} else {30/* Use on-chip reset capability */3132/* set the "key" register to enable access to33* "timer" and "enable" registers34*/35*IXP4XX_OSWK = IXP4XX_WDT_KEY;3637/* write 0 to the timer register for an immediate reset */38*IXP4XX_OSWT = 0;3940*IXP4XX_OSWE = IXP4XX_WDT_RESET_ENABLE | IXP4XX_WDT_COUNT_ENABLE;41}42}43444546