Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211295
b: refs/heads/master
c: c1b47e9
h: refs/heads/master
i:
  211293: 6951572
  211291: ddd0640
  211287: b1f9e39
  211279: 4b2b618
  211263: dd93277
v: v3
  • Loading branch information
Ralf Baechle committed Oct 4, 2010
1 parent 8cae399 commit 3e596e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 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: 863cb9bad8f992a9c171e90552045eac77808e84
refs/heads/master: c1b47e9508f74c152407323260f9fbb980d2fde1
20 changes: 5 additions & 15 deletions trunk/arch/mips/pnx8550/common/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,19 @@
*/
#include <linux/kernel.h>

#include <asm/processor.h>
#include <asm/reboot.h>
#include <glb.h>

void pnx8550_machine_restart(char *command)
{
char head[] = "************* Machine restart *************";
char foot[] = "*******************************************";

printk("\n\n");
printk("%s\n", head);
if (command != NULL)
printk("* %s\n", command);
printk("%s\n", foot);

PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST;
}

void pnx8550_machine_halt(void)
{
printk("*** Machine halt. (Not implemented) ***\n");
}

void pnx8550_machine_power_off(void)
{
printk("*** Machine power off. (Not implemented) ***\n");
while (1) {
if (cpu_wait)
cpu_wait();
}
}
3 changes: 1 addition & 2 deletions trunk/arch/mips/pnx8550/common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
extern void __init board_setup(void);
extern void pnx8550_machine_restart(char *);
extern void pnx8550_machine_halt(void);
extern void pnx8550_machine_power_off(void);
extern struct resource ioport_resource;
extern struct resource iomem_resource;
extern char *prom_getcmdline(void);
Expand Down Expand Up @@ -100,7 +99,7 @@ void __init plat_mem_setup(void)

_machine_restart = pnx8550_machine_restart;
_machine_halt = pnx8550_machine_halt;
pm_power_off = pnx8550_machine_power_off;
pm_power_off = pnx8550_machine_halt;

/* Clear the Global 2 Register, PCI Inta Output Enable Registers
Bit 1:Enable DAC Powerdown
Expand Down

0 comments on commit 3e596e5

Please sign in to comment.