Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196774
b: refs/heads/master
c: 7b5fcd6
h: refs/heads/master
v: v3
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed May 21, 2010
1 parent 7ab853a commit 8788bdc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8853aa3d912f47f649ad8de784ac3afd932437d
refs/heads/master: 7b5fcd694dffd1db294dd4ef9f90911852e422f5
16 changes: 15 additions & 1 deletion trunk/arch/mips/alchemy/devboards/pb1000/board_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
#include <linux/gpio.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pm.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-pb1x00/pb1000.h>
#include <asm/reboot.h>
#include <prom.h>

#include "../platform.h"
Expand All @@ -38,8 +40,16 @@ const char *get_system_type(void)
return "Alchemy Pb1000";
}

void board_reset(void)
static void board_reset(char *c)
{
asm volatile ("jr %0" : : "r" (0xbfc00000));
}

static void board_power_off(void)
{
printk(KERN_ALERT "It's now safe to remove power\n");
while (1)
asm volatile (".set mips3 ; wait ; .set mips1");
}

void __init board_setup(void)
Expand Down Expand Up @@ -177,6 +187,10 @@ void __init board_setup(void)
au_writel(au_readl(SYS_POWERCTRL) | (0x3 << 5), SYS_POWERCTRL);
break;
}

pm_power_off = board_power_off;
_machine_halt = board_power_off;
_machine_restart = board_reset;
}

static int __init pb1000_init_irq(void)
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/mips/alchemy/devboards/pb1100/board_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ const char *get_system_type(void)
return "Alchemy Pb1100";
}

void board_reset(void)
{
bcsr_write(BCSR_SYSTEM, 0);
}

void __init board_setup(void)
{
volatile void __iomem *base = (volatile void __iomem *)0xac000000UL;
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/mips/alchemy/devboards/pb1200/board_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ const char *get_system_type(void)
return "Alchemy Pb1200";
}

void board_reset(void)
{
bcsr_write(BCSR_RESETS, 0);
bcsr_write(BCSR_SYSTEM, 0);
}

void __init board_setup(void)
{
printk(KERN_INFO "AMD Alchemy Pb1200 Board\n");
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/mips/alchemy/devboards/pb1500/board_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ const char *get_system_type(void)
return "Alchemy Pb1500";
}

void board_reset(void)
{
bcsr_write(BCSR_SYSTEM, 0);
}

void __init board_setup(void)
{
u32 pin_func;
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/mips/alchemy/devboards/pb1550/board_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ const char *get_system_type(void)
return "Alchemy Pb1550";
}

void board_reset(void)
{
bcsr_write(BCSR_SYSTEM, 0);
}

void __init board_setup(void)
{
u32 pin_func;
Expand Down

0 comments on commit 8788bdc

Please sign in to comment.