blob: 1a8a25edb1b422ace6925e07171953390b51bc11 [file] [log] [blame]
Eric Miao49cbe782009-01-20 14:15:18 +08001/*
2 * linux/arch/arm/mach-mmp/include/mach/system.h
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9#ifndef __ASM_MACH_SYSTEM_H
10#define __ASM_MACH_SYSTEM_H
11
Mark F. Brown32c4dad2010-08-26 05:07:29 -040012#include <mach/cputype.h>
13
Eric Miao49cbe782009-01-20 14:15:18 +080014static inline void arch_idle(void)
15{
16 cpu_do_idle();
17}
18
Russell King8f6aef92009-03-29 17:14:45 +010019static inline void arch_reset(char mode, const char *cmd)
Eric Miao49cbe782009-01-20 14:15:18 +080020{
Mark F. Brown32c4dad2010-08-26 05:07:29 -040021 if (cpu_is_pxa168())
22 cpu_reset(0xffff0000);
23 else
24 cpu_reset(0);
Eric Miao49cbe782009-01-20 14:15:18 +080025}
26#endif /* __ASM_MACH_SYSTEM_H */