[PATCH 8/9] Small updates for Freescale MPC52xx
From: Sylvain Munaut <hidden>
Date: 2004-09-14 12:02:34
Also in:
lkml
# This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2004/09/14 12:30:28+02:00 tnt@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 [off-list ref] # # arch/ppc/platforms/lite5200.c # 2004/09/14 12:30:11+02:00 tnt@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;