[POWERPC] pasemi: Implement restart
Implement reset on platforms/pasemi. Default is just to reset the cpu using the SDC registers. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
1199919b69
commit
f620be99e9
@@ -38,21 +38,13 @@
|
|||||||
|
|
||||||
#include "pasemi.h"
|
#include "pasemi.h"
|
||||||
|
|
||||||
|
static void __iomem *reset_reg;
|
||||||
|
|
||||||
static void pas_restart(char *cmd)
|
static void pas_restart(char *cmd)
|
||||||
{
|
{
|
||||||
printk("restart unimplemented, looping...\n");
|
printk("Restarting...\n");
|
||||||
for (;;) ;
|
while (1)
|
||||||
}
|
out_le32(reset_reg, 0x6000000);
|
||||||
|
|
||||||
static void pas_power_off(void)
|
|
||||||
{
|
|
||||||
printk("power off unimplemented, looping...\n");
|
|
||||||
for (;;) ;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void pas_halt(void)
|
|
||||||
{
|
|
||||||
pas_power_off();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
@@ -82,6 +74,10 @@ void __init pas_setup_arch(void)
|
|||||||
conswitchp = &dummy_con;
|
conswitchp = &dummy_con;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Remap SDC register for doing reset */
|
||||||
|
/* XXXOJN This should maybe come out of the device tree */
|
||||||
|
reset_reg = ioremap(0xfc101100, 4);
|
||||||
|
|
||||||
pasemi_idle_init();
|
pasemi_idle_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,8 +207,6 @@ define_machine(pas) {
|
|||||||
.init_IRQ = pas_init_IRQ,
|
.init_IRQ = pas_init_IRQ,
|
||||||
.get_irq = mpic_get_irq,
|
.get_irq = mpic_get_irq,
|
||||||
.restart = pas_restart,
|
.restart = pas_restart,
|
||||||
.power_off = pas_power_off,
|
|
||||||
.halt = pas_halt,
|
|
||||||
.get_boot_time = pas_get_boot_time,
|
.get_boot_time = pas_get_boot_time,
|
||||||
.calibrate_decr = generic_calibrate_decr,
|
.calibrate_decr = generic_calibrate_decr,
|
||||||
.check_legacy_ioport = pas_check_legacy_ioport,
|
.check_legacy_ioport = pas_check_legacy_ioport,
|
||||||
|
Reference in New Issue
Block a user