Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19888
b: refs/heads/master
c: fcdb27a
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Feb 7, 2006
1 parent 420f77c commit 524df1d
Show file tree
Hide file tree
Showing 31 changed files with 80 additions and 41 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: 9414d3628abb646834965b6c23b8e9064729b110
refs/heads/master: fcdb27ad1d5c66611d3df6400a9b559186f266fe
3 changes: 2 additions & 1 deletion trunk/arch/mips/au1000/common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/pm.h>

#include <asm/cpu.h>
#include <asm/bootinfo.h>
Expand Down Expand Up @@ -125,7 +126,7 @@ void __init plat_setup(void)
#endif
_machine_restart = au1000_restart;
_machine_halt = au1000_halt;
_machine_power_off = au1000_power_off;
pm_power_off = au1000_power_off;
board_time_init = au1xxx_time_init;
board_timer_setup = au1xxx_timer_setup;

Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/mips/cobalt/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1996, 1997, 2004 by Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 1996, 1997, 2004, 05 by Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 2001, 2002, 2003 by Liam Davies (ldavies@agile.tv)
*
*/
#include <linux/config.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/serial.h>
#include <linux/serial_core.h>

Expand Down Expand Up @@ -99,7 +100,7 @@ void __init plat_setup(void)

_machine_restart = cobalt_machine_restart;
_machine_halt = cobalt_machine_halt;
_machine_power_off = cobalt_machine_power_off;
pm_power_off = cobalt_machine_power_off;

board_timer_setup = cobalt_timer_setup;

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/ddb5xxx/ddb5074/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/ide.h>
#include <linux/ioport.h>
#include <linux/irq.h>
#include <linux/pm.h>

#include <asm/addrspace.h>
#include <asm/bcache.h>
Expand Down Expand Up @@ -95,7 +96,7 @@ void __init plat_setup(void)

_machine_restart = ddb_machine_restart;
_machine_halt = ddb_machine_halt;
_machine_power_off = ddb_machine_power_off;
pm_power_off = ddb_machine_power_off;

ddb_out32(DDB_BAR0, 0);

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/ddb5xxx/ddb5476/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/pci.h>
#include <linux/pm.h>

#include <asm/addrspace.h>
#include <asm/bcache.h>
Expand Down Expand Up @@ -133,7 +134,7 @@ void __init plat_setup(void)

_machine_restart = ddb_machine_restart;
_machine_halt = ddb_machine_halt;
_machine_power_off = ddb_machine_power_off;
pm_power_off = ddb_machine_power_off;

/* request io port/mem resources */
if (request_resource(&ioport_resource, &ddb5476_ioport.dma1) ||
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/ddb5xxx/ddb5477/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/major.h>
#include <linux/kdev_t.h>
#include <linux/root_dev.h>
#include <linux/pm.h>

#include <asm/cpu.h>
#include <asm/bootinfo.h>
Expand Down Expand Up @@ -182,7 +183,7 @@ void __init plat_setup(void)

_machine_restart = ddb_machine_restart;
_machine_halt = ddb_machine_halt;
_machine_power_off = ddb_machine_power_off;
pm_power_off = ddb_machine_power_off;

/* setup resource limits */
ioport_resource.end = DDB_PCI0_IO_SIZE + DDB_PCI1_IO_SIZE - 1;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/dec/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/pm.h>

#include <asm/bootinfo.h>
#include <asm/cpu.h>
Expand Down Expand Up @@ -158,7 +159,7 @@ void __init plat_setup(void)

_machine_restart = dec_machine_restart;
_machine_halt = dec_machine_halt;
_machine_power_off = dec_machine_power_off;
pm_power_off = dec_machine_power_off;

ioport_resource.start = ~0UL;
ioport_resource.end = 0UL;
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/mips/gt64120/ev64120/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/timex.h>
#include <linux/pm.h>

#include <asm/bootinfo.h>
#include <asm/page.h>
#include <asm/io.h>
Expand Down Expand Up @@ -73,7 +75,7 @@ void __init plat_setup(void)
{
_machine_restart = galileo_machine_restart;
_machine_halt = galileo_machine_halt;
_machine_power_off = galileo_machine_power_off;
pm_power_off = galileo_machine_power_off;

board_time_init = gt64120_time_init;
set_io_port_base(KSEG1);
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/mips/gt64120/momenco_ocelot/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BRIEF MODULE DESCRIPTION
* Momentum Computer Ocelot (CP7000) - board dependent boot routines
*
* Copyright (C) 1996, 1997, 2001 Ralf Baechle
* Copyright (C) 1996, 1997, 2001, 06 Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 2000 RidgeRun, Inc.
* Copyright (C) 2001 Red Hat, Inc.
* Copyright (C) 2002 Momentum Computer
Expand Down Expand Up @@ -47,6 +47,8 @@
#include <linux/pci.h>
#include <linux/timex.h>
#include <linux/vmalloc.h>
#include <linux/pm.h>

#include <asm/time.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
Expand Down Expand Up @@ -159,7 +161,7 @@ void __init plat_setup(void)

_machine_restart = momenco_ocelot_restart;
_machine_halt = momenco_ocelot_halt;
_machine_power_off = momenco_ocelot_power_off;
pm_power_off = momenco_ocelot_power_off;

/*
* initrd_start = (ulong)ocelot_initrd_start;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/ite-boards/generic/it8172_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <linux/major.h>
#include <linux/kdev_t.h>
#include <linux/root_dev.h>
#include <linux/pm.h>

#include <asm/cpu.h>
#include <asm/time.h>
Expand Down Expand Up @@ -125,7 +126,7 @@ void __init plat_setup(void)

_machine_restart = it8172_restart;
_machine_halt = it8172_halt;
_machine_power_off = it8172_power_off;
pm_power_off = it8172_power_off;

/*
* IO/MEM resources.
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/mips/jazz/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <linux/console.h>
#include <linux/fb.h>
#include <linux/ide.h>
#include <linux/pm.h>

#include <asm/bootinfo.h>
#include <asm/irq.h>
#include <asm/jazz.h>
Expand Down Expand Up @@ -79,7 +81,7 @@ void __init plat_setup(void)

_machine_restart = jazz_machine_restart;
_machine_halt = jazz_machine_halt;
_machine_power_off = jazz_machine_power_off;
pm_power_off = jazz_machine_power_off;

#warning "Somebody should check if screen_info is ok for Jazz."

Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/jmr3927/rbhma3100/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <linux/ioport.h>
#include <linux/param.h> /* for HZ */
#include <linux/delay.h>
#include <linux/pm.h>
#ifdef CONFIG_SERIAL_TXX9
#include <linux/tty.h>
#include <linux/serial.h>
Expand Down Expand Up @@ -211,7 +212,7 @@ void __init plat_setup(void)

_machine_restart = jmr3927_machine_restart;
_machine_halt = jmr3927_machine_halt;
_machine_power_off = jmr3927_machine_power_off;
pm_power_off = jmr3927_machine_power_off;

/*
* IO/MEM resources.
Expand Down
10 changes: 6 additions & 4 deletions trunk/arch/mips/kernel/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2001 by Ralf Baechle
* Copyright (C) 2001, 06 by Ralf Baechle (ralf@linux-mips.org)
* Copyright (C) 2001 MIPS Technologies, Inc.
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pm.h>
#include <linux/types.h>
#include <linux/reboot.h>

#include <asm/reboot.h>

/*
Expand All @@ -19,7 +21,7 @@
*/
void (*_machine_restart)(char *command);
void (*_machine_halt)(void);
void (*_machine_power_off)(void);
void (*pm_power_off)(void);

void machine_restart(char *command)
{
Expand All @@ -35,6 +37,6 @@ void machine_halt(void)

void machine_power_off(void)
{
if (_machine_power_off)
_machine_power_off();
if (pm_power_off)
pm_power_off();
}
5 changes: 4 additions & 1 deletion trunk/arch/mips/lasat/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
*/
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/pm.h>

#include <asm/reboot.h>
#include <asm/system.h>
#include <asm/lasat/lasat.h>

#include "picvue.h"
#include "prom.h"

Expand Down Expand Up @@ -63,5 +66,5 @@ void lasat_reboot_setup(void)
{
_machine_restart = lasat_machine_restart;
_machine_halt = lasat_machine_halt;
_machine_power_off = lasat_machine_halt;
pm_power_off = lasat_machine_halt;
}
5 changes: 3 additions & 2 deletions trunk/arch/mips/mips-boards/generic/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*
*/
#include <linux/config.h>
#include <linux/pm.h>

#include <asm/io.h>
#include <asm/reboot.h>
Expand Down Expand Up @@ -65,9 +66,9 @@ void mips_reboot_setup(void)
_machine_restart = mips_machine_restart;
_machine_halt = mips_machine_halt;
#if defined(CONFIG_MIPS_ATLAS)
_machine_power_off = atlas_machine_power_off;
pm_power_off = atlas_machine_power_off;
#endif
#if defined(CONFIG_MIPS_MALTA) || defined(CONFIG_MIPS_SEAD)
_machine_power_off = mips_machine_halt;
pm_power_off = mips_machine_halt;
#endif
}
3 changes: 2 additions & 1 deletion trunk/arch/mips/momentum/jaguar_atx/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include <linux/pci.h>
#include <linux/swap.h>
#include <linux/ioport.h>
#include <linux/pm.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/timex.h>
Expand Down Expand Up @@ -365,7 +366,7 @@ void __init plat_setup(void)

_machine_restart = momenco_jaguar_restart;
_machine_halt = momenco_jaguar_halt;
_machine_power_off = momenco_jaguar_power_off;
pm_power_off = momenco_jaguar_power_off;

/*
* initrd_start = (ulong)jaguar_initrd_start;
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/mips/momentum/ocelot_3/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
#include <linux/timex.h>
#include <linux/bootmem.h>
#include <linux/mv643xx.h>
#include <linux/pm.h>

#include <asm/time.h>
#include <asm/page.h>
#include <asm/bootinfo.h>
Expand Down Expand Up @@ -321,7 +323,7 @@ void __init plat_setup(void)

_machine_restart = momenco_ocelot_restart;
_machine_halt = momenco_ocelot_halt;
_machine_power_off = momenco_ocelot_power_off;
pm_power_off = momenco_ocelot_power_off;

/* Wired TLB entries */
setup_wired_tlb_entries();
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/mips/momentum/ocelot_c/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/pm.h>
#include <linux/timex.h>
#include <linux/vmalloc.h>

#include <asm/time.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
Expand Down Expand Up @@ -236,7 +238,7 @@ void __init plat_setup(void)

_machine_restart = momenco_ocelot_restart;
_machine_halt = momenco_ocelot_halt;
_machine_power_off = momenco_ocelot_power_off;
pm_power_off = momenco_ocelot_power_off;

/*
* initrd_start = (ulong)ocelot_initrd_start;
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/mips/momentum/ocelot_g/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/pm.h>
#include <linux/timex.h>
#include <linux/vmalloc.h>

#include <asm/time.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
Expand Down Expand Up @@ -169,7 +171,7 @@ void __init plat_setup(void)

_machine_restart = momenco_ocelot_restart;
_machine_halt = momenco_ocelot_halt;
_machine_power_off = momenco_ocelot_power_off;
pm_power_off = momenco_ocelot_power_off;

/*
* initrd_start = (ulong)ocelot_initrd_start;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/philips/pnx8550/common/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/serial_ip3106.h>
#include <linux/pm.h>

#include <asm/cpu.h>
#include <asm/bootinfo.h>
Expand Down Expand Up @@ -90,7 +91,7 @@ void __init plat_setup(void)

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

board_time_init = pnx8550_time_init;
board_timer_setup = pnx8550_timer_setup;
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/mips/pmc-sierra/yosemite/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/smp.h>

#include <asm/io.h>
Expand Down Expand Up @@ -92,7 +93,7 @@ void __init prom_init(void)
/* Callbacks for halt, restart */
_machine_restart = (void (*)(char *)) prom_exit;
_machine_halt = prom_halt;
_machine_power_off = prom_halt;
pm_power_off = prom_halt;

debug_vectors = cv;
arcs_cmdline[0] = '\0';
Expand Down
Loading

0 comments on commit 524df1d

Please sign in to comment.