aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/mach-loongson
diff options
context:
space:
mode:
authorWu Zhangjin <wuzhangjin@gmail.com>2009-11-09 11:06:15 -0500
committerRalf Baechle <ralf@linux-mips.org>2009-12-16 20:57:14 -0500
commit2ee98e0f46a12423d5ecd7da520a1dd94540c37d (patch)
tree6f0cea5a0b1562d1346b72937edf5e30c17af1ec /arch/mips/include/asm/mach-loongson
parent6616db78eecab1236781c546670391e1e5dff256 (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.h7
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);
42extern void __init mach_init_irq(void); 42extern void __init mach_init_irq(void);
43extern void mach_irq_dispatch(unsigned int pending); 43extern 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