Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179150
b: refs/heads/master
c: 2620c35
h: refs/heads/master
v: v3
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Jan 12, 2010
1 parent 4eed345 commit 25fdd69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 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: 09b7c9f24d8e9b772da682b52b83c88f426a849d
refs/heads/master: 2620c3570f748647afb17e095507099a309ed8f6
18 changes: 0 additions & 18 deletions trunk/arch/mips/powertv/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
#include <asm/mach-powertv/asic_regs.h>
#include "reset.h"

static void mips_machine_restart(char *command);
static void mips_machine_halt(void);

static void mips_machine_restart(char *command)
{
#ifdef CONFIG_BOOTLOADER_DRIVER
Expand All @@ -44,22 +41,7 @@ static void mips_machine_restart(char *command)
#endif
}

static void mips_machine_halt(void)
{
#ifdef CONFIG_BOOTLOADER_DRIVER
/*
* Call the bootloader's reset function to ensure
* that persistent data is flushed before hard reset
*/
kbldr_SetCauseAndReset();
#else
writel(0x1, asic_reg_addr(watchdog));
#endif
}

void mips_reboot_setup(void)
{
_machine_restart = mips_machine_restart;
_machine_halt = mips_machine_halt;
pm_power_off = mips_machine_halt;
}

0 comments on commit 25fdd69

Please sign in to comment.