Subject: [PATCH 8/9] Small updates for Freescale MPC52xx

From: Sylvain Munaut <[email-masked]>
Date: Tue, 14 Sep 2004 14:01:43 +0200

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/09/14 12:30:28+02:00 [email-masked]
#   ppc: Allow the Freescale MPC52xx to NAP when idle on LITE5200 platform
#  
#   NAP allows some powersave. It's provided mainly as an example on how 
to do it.
#   However, when a BDI is plugged it causes early crashes so be aware !
#  
#   Signed-off-by: Sylvain Munaut <[email-masked]>
#
# arch/ppc/platforms/lite5200.c
#   2004/09/14 12:30:11+02:00 [email-masked] +7 -0
#   ppc: Allow the Freescale MPC52xx to NAP when idle on LITE5200 platform
#
diff -Nru a/arch/ppc/platforms/lite5200.c b/arch/ppc/platforms/lite5200.c
--- a/arch/ppc/platforms/lite5200.c     2004-09-14 12:48:13 +02:00
+++ b/arch/ppc/platforms/lite5200.c     2004-09-14 12:48:13 +02:00
@@ -36,6 +36,8 @@
 #include <asm/mpc52xx.h>

+extern int powersave_nap;
+
 /* Board data given by U-Boot */
 bd_t __res;
 EXPORT_SYMBOL(__res);  /* For modules */
@@ -123,6 +125,11 @@
        /* No ISA bus AFAIK */
        isa_io_base             = 0;
        isa_mem_base            = 0;
+
+       /* Powersave */
+#ifndef CONFIG_BDI_SWITCH      /* NAP & BDI is a bad combination ... */
+       powersave_nap = 1;      /* We allow this platform to NAP */
+#endif

        /* Setup the ppc_md struct */
        ppc_md.setup_arch       = lite5200_setup_arch;