Commit 86dde15b authored by Sergei Shtylylov's avatar Sergei Shtylylov Committed by Ralf Baechle

[MIPS] Fix DBAu1550 software power off.

Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent de62893b
...@@ -164,13 +164,13 @@ void au1000_restart(char *command) ...@@ -164,13 +164,13 @@ void au1000_restart(char *command)
void au1000_halt(void) void au1000_halt(void)
{ {
#if defined(CONFIG_MIPS_PB1550) #if defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550)
/* power off system */ /* power off system */
printk("\n** Powering off Pb1550\n"); printk("\n** Powering off...\n");
au_writew(au_readw(0xAF00001C) | (3<<14), 0xAF00001C); au_writew(au_readw(0xAF00001C) | (3<<14), 0xAF00001C);
au_sync(); au_sync();
while(1); /* should not get here */ while(1); /* should not get here */
#endif #else
printk(KERN_NOTICE "\n** You can safely turn off the power\n"); printk(KERN_NOTICE "\n** You can safely turn off the power\n");
#ifdef CONFIG_MIPS_MIRAGE #ifdef CONFIG_MIPS_MIRAGE
au_writel((1 << 26) | (1 << 10), GPIO2_OUTPUT); au_writel((1 << 26) | (1 << 10), GPIO2_OUTPUT);
...@@ -187,6 +187,7 @@ void au1000_halt(void) ...@@ -187,6 +187,7 @@ void au1000_halt(void)
"wait\n\t" "wait\n\t"
".set\tmips0"); ".set\tmips0");
#endif #endif
#endif /* defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550) */
} }
void au1000_power_off(void) void au1000_power_off(void)
......
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