You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
642 B
38 lines
642 B
17 years ago
|
/*
|
||
17 years ago
|
* arch/arm/mach-loki/include/mach/system.h
|
||
17 years ago
|
*
|
||
|
* This file is licensed under the terms of the GNU General Public
|
||
|
* License version 2. This program is licensed "as is" without any
|
||
|
* warranty of any kind, whether express or implied.
|
||
|
*/
|
||
|
|
||
|
#ifndef __ASM_ARCH_SYSTEM_H
|
||
|
#define __ASM_ARCH_SYSTEM_H
|
||
|
|
||
17 years ago
|
#include <mach/hardware.h>
|
||
|
#include <mach/loki.h>
|
||
17 years ago
|
|
||
|
static inline void arch_idle(void)
|
||
|
{
|
||
|
cpu_do_idle();
|
||
|
}
|
||
|
|
||
|
static inline void arch_reset(char mode)
|
||
|
{
|
||
|
/*
|
||
|
* Enable soft reset to assert RSTOUTn.
|
||
|
*/
|
||
|
writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK);
|
||
|
|
||
|
/*
|
||
|
* Assert soft reset.
|
||
|
*/
|
||
|
writel(SOFT_RESET, SYSTEM_SOFT_RESET);
|
||
|
|
||
|
while (1)
|
||
|
;
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif
|