Commit c613af20 authored by Sylvain Munaut's avatar Sylvain Munaut Committed by Linus Torvalds

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 !
You need to define CONFIG_BDI_SWITCH so powersave is disabled.
Signed-off-by: default avatarSylvain Munaut <tnt@246tNt.com>
parent a095e3c6
......@@ -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 */
......@@ -155,6 +157,9 @@ platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
isa_io_base = 0;
isa_mem_base = 0;
/* Powersave */
powersave_nap = 1; /* We allow this platform to NAP */
/* Setup the ppc_md struct */
ppc_md.setup_arch = lite5200_setup_arch;
ppc_md.show_cpuinfo = lite5200_show_cpuinfo;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment