Simple patch to power off DBAU1200
PATCH 1/1 Simple patch to power off DBAU1200
Hi
Please, find the attached patch which enables
powering off the DBAU1200 board.
BR,
Matej
Patch to enable powering off DBAU1200
arch/mips/au1000/common/reset.c +3 -0
@@ -175,6 +175,9 @@#ifdef CONFIG_MIPS_MIRAGE au_writel ((1 <<26 ) | (1 <<10 ),GPIO2_OUTPUT );#endif +#ifdef CONFIG_MIPS_DB1200 +au_writew (au_readw (0xB980001C ) | (1 <<14 ),0xB980001C ); +#endif #ifdef CONFIG_PM au_sleep ();
PATCH 1/1 Simple patch to power off DBAU1200
Hello.
Quoted 4 lines · Matej Kupljen
Hi
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.
Quoted 2 lines
BR,
Matej
WBR, Sergei
Quoted 9 lines
------------------------------------------------------------------------
Patch to enable powering off DBAU1200
Signed-off-by Matej Kupljen <[email protected]>
arch/mips/au1000/common/reset.c line 183
Quoted 9 lines
arch/mips/au1000/common/reset.c +3
-0@@ -175,6 +175,9 @@#ifdef CONFIG_MIPS_MIRAGE au_writel ((1 <<26 ) | (1 <<10 ),GPIO2_OUTPUT );#endif +#ifdef CONFIG_MIPS_DB1200 +au_writew (au_readw (0xB980001C ) | (1 <<14 ),0xB980001C ); +#endif #ifdef CONFIG_PM au_sleep ();
arch/mips/au1000/common/reset.c +4 -3
@@ -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 );au_sync ();while (1 );/* should not get here */ -#endif +#else printk (KERN_NOTICE "\n** You can safely turn off the power\n" );#ifdef CONFIG_MIPS_MIRAGE au_writel ((1 <<26 ) | (1 <<10 ),GPIO2_OUTPUT );
@@ -187,6 +187,7 @@ void au1000_halt(void)"wait\n\t" ".set\tmips0");#endif +#endif /* defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550) */ }void au1000_power_off (void )
PATCH 1/1 Enable DBAu1550 soft-off
Hello, I wrote.
Quoted 4 lines
Quoted 2 lines · Matej Kupljen
Hi
Quoted 8 lines
Quoted 2 lines
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 theau1000_halt()code unreachable on DBAu1550/PB1550 anyway.
Failed to chenge the subject to a proper one. :-/
WBR, Sergei
Re: [PATCH] Enable DBAu1550 soft-off
Hello, I wrote.
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines · Matej Kupljen
Hi
Please, find the attached patch which enables
powering off the DBAU1200 board.
Quoted 7 lines
Quoted 4 lines
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 theau1000_halt()code unreachable on DBAu1550/PB1550 anyway.Failed to chenge the subject to a proper one. :-/
And forgot about sign-off line. :-(
Quoted 1 line
WBR, Sergei
arch/mips/au1000/common/reset.c +4 -3
@@ -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 );au_sync ();while (1 );/* should not get here */ -#endif +#else printk (KERN_NOTICE "\n** You can safely turn off the power\n" );#ifdef CONFIG_MIPS_MIRAGE au_writel ((1 <<26 ) | (1 <<10 ),GPIO2_OUTPUT );
@@ -187,6 +187,7 @@ void au1000_halt(void)"wait\n\t" ".set\tmips0");#endif +#endif /* defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550) */ }void au1000_power_off (void )