@@ -168,6 +168,7 @@ config CPU_SUBTYPE_ST40
select CPU_SH4
select GENERIC_GPIO
select ARCH_REQUIRE_GPIOLIB
+ select ARCH_SUSPEND_POSSIBLE
config CPU_ST40_300
bool
@@ -4,18 +4,6 @@
#ifndef __ASSEMBLY__
static inline int arch_prepare_suspend(void) { return 0; }
-static inline void save_processor_state(void)
-{
- return;
-}
-
-static inline void restore_processor_state(void)
-{
- return;
-}
-
-extern const unsigned long __nosave_begin, __nosave_end;
-
#include <asm/ptrace.h>
struct swsusp_arch_regs {
@@ -14,7 +14,7 @@ obj-y := debugtraps.o idle.o io.o io_generic.o irq.o \
sys_sh.o sys_sh32.o syscalls_32.o time_32.o topology.o \
traps.o traps_32.o
-obj-y += cpu/ timers/
+obj-y += cpu/ timers/ pm/
obj-$(CONFIG_VSYSCALL) += vsyscall/
obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o
@@ -29,11 +29,13 @@ int main(void)
DEFINE(_PTRS_PER_PGD, PTRS_PER_PGD);
+#ifndef CONFIG_CPU_SUBTYPE_ST40
#ifdef CONFIG_HIBERNATION
DEFINE(PBE_ADDRESS, offsetof(struct pbe, address));
DEFINE(PBE_ORIG_ADDRESS, offsetof(struct pbe, orig_address));
DEFINE(PBE_NEXT, offsetof(struct pbe, next));
DEFINE(SWSUSP_ARCH_REGS_SIZE, sizeof(struct swsusp_arch_regs));
#endif
+#endif
return 0;
}
@@ -5,7 +5,9 @@
obj-y := probe.o common.o
common-y += entry.o
+ifndef CONFIG_CPU_SUBTYPE_ST40
obj-$(CONFIG_HIBERNATION) += $(addprefix ../sh3/, swsusp.o)
+endif
obj-$(CONFIG_SH_FPU) += fpu.o softfloat.o
obj-$(CONFIG_SH_STORE_QUEUES) += sq.o
@@ -41,19 +43,3 @@ endif
clock-$(CONFIG_CPU_SUBTYPE_SH4_202) += clock-sh4-202.o
obj-y += $(clock-y)
-
-obj-$(CONFIG_STM_CPU_FREQ) += cpufreq-stm.o
-
-ifdef CONFIG_SUSPEND
-obj-y += suspend.o suspend-core.o
-obj-$(CONFIG_CPU_SUBTYPE_STX5197) += suspend-stx5197.o
-obj-$(CONFIG_CPU_SUBTYPE_STX7100) += suspend-stx7100.o
-obj-$(CONFIG_CPU_SUBTYPE_STX7105) += suspend-stx7105.o
-obj-$(CONFIG_CPU_SUBTYPE_STX7111) += suspend-stx7111.o
-obj-$(CONFIG_CPU_SUBTYPE_STX7141) += suspend-stx7141.o
-obj-$(CONFIG_CPU_SUBTYPE_STX7200) += suspend-stx7200.o
-endif
-
-ifdef CONFIG_HIBERNATION
-obj-y += cpu.o swsusp.o
-endif