powerpc/fsl-booke: Add hibernation support for FSL BookE processors

Previous thread: powerpc/44x: icon: select SM502 and frame buffer console support by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 2:59 pm. (1 message)

Next thread: drm/i915: Avoid moving from CPU domain during pwrite by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 2:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Tuesday, June 1, 2010 - 2:59 pm

Gitweb:     http://git.kernel.org/linus/90103f932f0d94e0a1a0e4faf20fb24a0b07264c
Commit:     90103f932f0d94e0a1a0e4faf20fb24a0b07264c
Parent:     fe04b1121511a97982a1fcdd38e44d2029304a6d
Author:     Anton Vorontsov <avorontsov@mvista.com>
AuthorDate: Mon May 17 22:56:52 2010 +0400
Committer:  Kumar Gala <galak@kernel.crashing.org>
CommitDate: Fri May 21 07:41:53 2010 -0500

    powerpc/fsl-booke: Add hibernation support for FSL BookE processors
    
    This is started as swsusp_32.S modifications, but the amount of #ifdefs
    made the whole file horribly unreadable, so let's put the support into
    its own separate file.
    
    The code should be relatively easy to modify to support 44x BookEs as
    well, but since I don't have any 44x to test, let's confine the code to
    FSL BookE. (The only FSL-specific part so far is 'flush_dcache_L1'.)
    
    Signed-off-by: Anton Vorontsov <avorontsov@mvista.com>
    Acked-by: Scott Wood <scottwood@freescale.com>
    Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 arch/powerpc/kernel/Makefile       |    8 +-
 arch/powerpc/kernel/swsusp_booke.S |  193 ++++++++++++++++++++++++++++++++++++
 2 files changed, 199 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 8773263..58d0572 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -57,8 +57,12 @@ obj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
 obj-$(CONFIG_E500)		+= idle_e500.o
 obj-$(CONFIG_6xx)		+= idle_6xx.o l2cr_6xx.o cpu_setup_6xx.o
 obj-$(CONFIG_TAU)		+= tau_6xx.o
-obj-$(CONFIG_HIBERNATION)	+= swsusp.o suspend.o \
-				   swsusp_$(CONFIG_WORD_SIZE).o
+obj-$(CONFIG_HIBERNATION)	+= swsusp.o suspend.o
+ifeq ($(CONFIG_FSL_BOOKE),y)
+obj-$(CONFIG_HIBERNATION)	+= swsusp_booke.o
+else
+obj-$(CONFIG_HIBERNATION)	+= swsusp_$(CONFIG_WORD_SIZE).o
+endif
 obj64-$(CONFIG_HIBERNATION)	+= swsusp_asm64.o
 obj-$(CONFIG_MODULES)		+= module.o module_$(CONFIG_WORD_SIZE).o
 obj-$(CONFIG_44x)		+= ...
Previous thread: powerpc/44x: icon: select SM502 and frame buffer console support by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 2:59 pm. (1 message)

Next thread: drm/i915: Avoid moving from CPU domain during pwrite by Linux Kernel Mailing List on Tuesday, June 1, 2010 - 2:59 pm. (1 message)