unicore32 additional architecture files: pm related files
Subsystems (2)
PATCH 1/12 unicore32 additional architecture files: pm related files
Message-Id: <9ee362f0c0ec9dfec91d0788314ae91f555554c3.1297842537.git.gxt@mprc.pku.edu.cn>
In-Reply-To: <[email protected]>
References: <[email protected]>
From: GuanXuetao <[email protected]>
Date: Sat, 15 Jan 2011 18:20:58 +0800
This patch adds pm related files, including hibernate and sleep supports.
Signed-off-by Guan Xuetao <[email protected]>
Acked-by Arnd Bergmann <[email protected]>
--- arch/unicore32/include/asm/suspend.h | 30 +++ arch/unicore32/include/mach/pm.h | 43 ++++ arch/unicore32/kernel/clock.c | 388 +++++++++++++++++++++++++++++++++ arch/unicore32/kernel/cpu-ucv2.c | 93 ++++++++ arch/unicore32/kernel/hibernate.c | 160 ++++++++++++++ arch/unicore32/kernel/hibernate_asm.S | 117 ++++++++++ arch/unicore32/kernel/pm.c | 123 +++++++++++ arch/unicore32/kernel/sleep.S | 202 +++++++++++++++++ 8 files changed, 1156 insertions(+), 0 deletions(-) create mode 100644 arch/unicore32/include/asm/suspend.h create mode 100644 arch/unicore32/include/mach/pm.h create mode 100644 arch/unicore32/kernel/clock.c create mode 100644 arch/unicore32/kernel/cpu-ucv2.c create mode 100644 arch/unicore32/kernel/hibernate.c create mode 100644 arch/unicore32/kernel/hibernate_asm.S create mode 100644 arch/unicore32/kernel/pm.c create mode 100644 arch/unicore32/kernel/sleep.S
arch/unicore32/include/asm/suspend.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* linux/arch/unicore32/include/asm/suspend.h +* +* Code specific to PKUnity SoC and UniCore ISA +* +* Copyright (C) 2001-2010 GUAN Xue-tao +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#ifndef __UNICORE_SUSPEND_H__ +#define __UNICORE_SUSPEND_H__ + +#ifndef __ASSEMBLY__ +static inline int arch_prepare_suspend (void ) {return 0 ; } + +#include <asm/ptrace.h> + +struct swsusp_arch_regs { +struct cpu_context_save cpu_context;/* cpu context */ +#ifdef CONFIG_UNICORE_FPU_F64 +struct fp_state fpstate __attribute__((aligned (8 ))); +#endif +}; +#endif + +#endif /* __UNICORE_SUSPEND_H__ */ +
arch/unicore32/include/mach/pm.h new file +43 -0
43 lines not on this page · raw message
arch/unicore32/kernel/clock.c new file +388 -0
388 lines not on this page · raw message
arch/unicore32/kernel/cpu-ucv2.c new file +93 -0
93 lines not on this page · raw message
arch/unicore32/kernel/hibernate.c new file +160 -0
160 lines not on this page · raw message
arch/unicore32/kernel/hibernate_asm.S new file +117 -0
117 lines not on this page · raw message
arch/unicore32/kernel/pm.c new file +123 -0
123 lines not on this page · raw message
arch/unicore32/kernel/sleep.S new file +202 -0
202 lines not on this page · raw message
Signature · 1 line
1.6.2.2