[PATCH 8/9] Small updates for Freescale MPC52xx

Sylvain Munaut tnt at 246tNt.com
Tue Sep 14 22:01:43 EST 2004


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/09/14 12:30:28+02:00 tnt at 246tNt.com
#   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 <tnt at 246tNt.com>
#
# arch/ppc/platforms/lite5200.c
#   2004/09/14 12:30:11+02:00 tnt at 246tNt.com +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;




More information about the Linuxppc-dev mailing list