Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162825
b: refs/heads/master
c: f256a57
h: refs/heads/master
i:
  162823: 447b2aa
v: v3
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Sep 17, 2009
1 parent a077307 commit 38ae26e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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: 8f0de87fa97667fa05c7bc938396ec759f021a21
refs/heads/master: f256a5775a357e2527c7bbfb59c125c4c4c356ad
18 changes: 10 additions & 8 deletions trunk/arch/mips/lemote/lm2e/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@
*
* Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology
* Author: Fuxin Zhang, zhangfx@lemote.com
* Copyright (C) 2009 Lemote, Inc. & Institute of Computing Technology
* Author: Zhangjin Wu, wuzj@lemote.com
*/
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/io.h>

#include <asm/reboot.h>
#include <asm/mips-boards/bonito64.h>

static void loongson2e_restart(char *command)
{
#ifdef CONFIG_32BIT
*(unsigned long *)0xbfe00104 &= ~(1 << 2);
*(unsigned long *)0xbfe00104 |= (1 << 2);
#else
*(unsigned long *)0xffffffffbfe00104 &= ~(1 << 2);
*(unsigned long *)0xffffffffbfe00104 |= (1 << 2);
#endif
__asm__ __volatile__("jr\t%0"::"r"(0xbfc00000));
/* do preparation for reboot */
BONITO_BONGENCFG &= ~(1 << 2);
BONITO_BONGENCFG |= (1 << 2);

/* reboot via jumping to boot base address */
((void (*)(void))ioremap_nocache(BONITO_BOOT_BASE, 4)) ();
}

static void loongson2e_halt(void)
Expand Down

0 comments on commit 38ae26e

Please sign in to comment.