[Top] [All Lists]

Re: [PATCH] Enable DBAu1550 soft-off

Subject: Re: [PATCH] Enable DBAu1550 soft-off
From: Sergei Shtylylov <>
Date: Thu, 08 Dec 2005 23:40:12 +0300
Cc: Jordan Crouse <>
In-reply-to: <>
Organization: MostaVista Software Inc.
Original-recipient: rfc822;
References: <1133342401.24526.25.camel@localhost.localdomain> <> <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803
Hello, I wrote.

Matej Kupljen wrote:


Please, find the attached patch which enables
powering off the DBAU1200 board.

As a follow up to this one, here's the patch which does the same thing for DBAu1550 by just reusing Pb1550 code. I added #else because #if renders the
rest of the au1000_halt() code unreachable on DBAu1550/PB1550 anyway.

   Failed to chenge the subject to a proper one. :-/

    And forgot about sign-off line. :-(

WBR, Sergei

Signed-off-by: Sergei Shtylyov <>
diff --git a/arch/mips/au1000/common/reset.c b/arch/mips/au1000/common/reset.c
index 65b84db..8a4afdc 100644
--- a/arch/mips/au1000/common/reset.c
+++ b/arch/mips/au1000/common/reset.c
@@ -164,13 +164,13 @@ void au1000_restart(char *command)
 void au1000_halt(void)
-#if defined(CONFIG_MIPS_PB1550)
+#if defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550)
        /* power off system */
-       printk("\n** Powering off Pb1550\n");
+       printk("\n** Powering off...\n");
        au_writew(au_readw(0xAF00001C) | (3<<14), 0xAF00001C);
        while(1); /* should not get here */
        printk(KERN_NOTICE "\n** You can safely turn off the power\n");
        au_writel((1 << 26) | (1 << 10), GPIO2_OUTPUT);
@@ -187,6 +187,7 @@ void au1000_halt(void)
+#endif /* defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550) */
 void au1000_power_off(void)

<Prev in Thread] Current Thread [Next in Thread>