diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2009-11-09 11:06:15 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-12-16 20:57:14 -0500 |
commit | 2ee98e0f46a12423d5ecd7da520a1dd94540c37d (patch) | |
tree | 6f0cea5a0b1562d1346b72937edf5e30c17af1ec /arch/mips/include/asm/mach-loongson | |
parent | 6616db78eecab1236781c546670391e1e5dff256 (diff) |
MIPS: Lemote 2F: Add reset support
Fuloong 2F, Yeeloong 2F and Menglong 2F have different reset / shutdown
logic.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: zhangfx@lemote.com
Cc: yanh@lemote.com
Cc: huhb@lemote.com
Cc: Nicholas Mc Guire <hofrat@hofr.at>
Cc: Arnaud Patard <apatard@mandriva.com>
Cc: loongson-dev@googlegroups.com
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-loongson')
-rw-r--r-- | arch/mips/include/asm/mach-loongson/loongson.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-loongson/loongson.h b/arch/mips/include/asm/mach-loongson/loongson.h index 62171f240c7..99113902719 100644 --- a/arch/mips/include/asm/mach-loongson/loongson.h +++ b/arch/mips/include/asm/mach-loongson/loongson.h | |||
@@ -42,6 +42,13 @@ extern void __init set_irq_trigger_mode(void); | |||
42 | extern void __init mach_init_irq(void); | 42 | extern void __init mach_init_irq(void); |
43 | extern void mach_irq_dispatch(unsigned int pending); | 43 | extern void mach_irq_dispatch(unsigned int pending); |
44 | 44 | ||
45 | /* We need this in some places... */ | ||
46 | #define delay() ({ \ | ||
47 | int x; \ | ||
48 | for (x = 0; x < 100000; x++) \ | ||
49 | __asm__ __volatile__(""); \ | ||
50 | }) | ||
51 | |||
45 | #define LOONGSON_REG(x) \ | 52 | #define LOONGSON_REG(x) \ |
46 | (*(volatile u32 *)((char *)CKSEG1ADDR(LOONGSON_REG_BASE) + (x))) | 53 | (*(volatile u32 *)((char *)CKSEG1ADDR(LOONGSON_REG_BASE) + (x))) |
47 | 54 | ||