[PATCH 8/9] Small updates for Freescale MPC52xx

From: Sylvain Munaut
Date: Tue Sep 14 2004 - 07:08:12 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/