Release 4.8 arch/mips/mti-malta/malta-reset.c
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Carsten Langgaard, carstenl@mips.com
* Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved.
*/
#include <linux/io.h>
#include <linux/pm.h>
#include <asm/reboot.h>
#include <asm/mach-malta/malta-pm.h>
#define SOFTRES_REG 0x1f000500
#define GORESET 0x42
static void mips_machine_restart(char *command)
{
unsigned int __iomem *softres_reg =
ioremap(SOFTRES_REG, sizeof(unsigned int));
__raw_writel(GORESET, softres_reg);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| linus torvalds | linus torvalds | 19 | 55.88% | 1 | 25.00% |
| andrew morton | andrew morton | 9 | 26.47% | 1 | 25.00% |
| ralf baechle | ralf baechle | 5 | 14.71% | 1 | 25.00% |
| dmitri vorobiev | dmitri vorobiev | 1 | 2.94% | 1 | 25.00% |
| Total | 34 | 100.00% | 4 | 100.00% |
static void mips_machine_halt(void)
{
while (true);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| linus torvalds | linus torvalds | 7 | 53.85% | 1 | 50.00% |
| paul burton | paul burton | 6 | 46.15% | 1 | 50.00% |
| Total | 13 | 100.00% | 2 | 100.00% |
static void mips_machine_power_off(void)
{
mips_pm_suspend(PIIX4_FUNC3IO_PMCNTRL_SUS_TYP_SOFF);
pr_info("Failed to power down, resetting\n");
mips_machine_restart(NULL);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| paul burton | paul burton | 19 | 82.61% | 2 | 50.00% |
| linus torvalds | linus torvalds | 2 | 8.70% | 1 | 25.00% |
| ralf baechle | ralf baechle | 2 | 8.70% | 1 | 25.00% |
| Total | 23 | 100.00% | 4 | 100.00% |
static int __init mips_reboot_setup(void)
{
_machine_restart = mips_machine_restart;
_machine_halt = mips_machine_halt;
pm_power_off = mips_machine_power_off;
return 0;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| linus torvalds | linus torvalds | 16 | 66.67% | 1 | 25.00% |
| ralf baechle | ralf baechle | 7 | 29.17% | 2 | 50.00% |
| paul burton | paul burton | 1 | 4.17% | 1 | 25.00% |
| Total | 24 | 100.00% | 4 | 100.00% |
arch_initcall(mips_reboot_setup);
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| linus torvalds | linus torvalds | 47 | 39.17% | 1 | 10.00% |
| paul burton | paul burton | 29 | 24.17% | 2 | 20.00% |
| ralf baechle | ralf baechle | 24 | 20.00% | 3 | 30.00% |
| steven j. hill | steven j. hill | 10 | 8.33% | 2 | 20.00% |
| andrew morton | andrew morton | 9 | 7.50% | 1 | 10.00% |
| dmitri vorobiev | dmitri vorobiev | 1 | 0.83% | 1 | 10.00% |
| Total | 120 | 100.00% | 10 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.