|
@@ -11,6 +11,7 @@
|
|
#include <linux/pm.h>
|
|
#include <linux/pm.h>
|
|
|
|
|
|
#include <asm/bootinfo.h>
|
|
#include <asm/bootinfo.h>
|
|
|
|
+#include <asm/idle.h>
|
|
#include <asm/reboot.h>
|
|
#include <asm/reboot.h>
|
|
#include <asm/mach-au1x00/au1000.h>
|
|
#include <asm/mach-au1x00/au1000.h>
|
|
#include <asm/mach-db1x00/bcsr.h>
|
|
#include <asm/mach-db1x00/bcsr.h>
|
|
@@ -53,6 +54,8 @@ static void db1x_power_off(void)
|
|
{
|
|
{
|
|
bcsr_write(BCSR_RESETS, 0);
|
|
bcsr_write(BCSR_RESETS, 0);
|
|
bcsr_write(BCSR_SYSTEM, BCSR_SYSTEM_PWROFF | BCSR_SYSTEM_RESET);
|
|
bcsr_write(BCSR_SYSTEM, BCSR_SYSTEM_PWROFF | BCSR_SYSTEM_RESET);
|
|
|
|
+ while (1) /* sit and spin */
|
|
|
|
+ cpu_wait();
|
|
}
|
|
}
|
|
|
|
|
|
static void db1x_reset(char *c)
|
|
static void db1x_reset(char *c)
|