summaryrefslogtreecommitdiff
path: root/board/xilinx/microblaze-generic/microblaze-generic.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-04-30 09:58:03 -0400
committerTom Rini <trini@ti.com>2013-05-01 10:37:35 -0400
commit92daa4d2cff74d35a8b479c27a419025a464533f (patch)
tree7ea40acf8c6aa7301643e67acc53418050a9a00a /board/xilinx/microblaze-generic/microblaze-generic.c
parent19fe4b3e3122071fbe6481df05bd819405e1983e (diff)
parent0f21f98dd4d6bff72df4eeaca4163779896cb336 (diff)
downloadu-boot-imx-92daa4d2cff74d35a8b479c27a419025a464533f.zip
u-boot-imx-92daa4d2cff74d35a8b479c27a419025a464533f.tar.gz
u-boot-imx-92daa4d2cff74d35a8b479c27a419025a464533f.tar.bz2
Merge branch 'microblaze' of git://www.denx.de/git/u-boot-microblaze
Diffstat (limited to 'board/xilinx/microblaze-generic/microblaze-generic.c')
-rw-r--r--board/xilinx/microblaze-generic/microblaze-generic.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c
index 70f94c1..befbb3a 100644
--- a/board/xilinx/microblaze-generic/microblaze-generic.c
+++ b/board/xilinx/microblaze-generic/microblaze-generic.c
@@ -38,10 +38,15 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
*((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)) =
++(*((unsigned long *)(CONFIG_SYS_GPIO_0_ADDR)));
#endif
-#ifdef CONFIG_SYS_RESET_ADDRESS
- puts ("Reseting board\n");
- asm ("bra r0");
+
+#ifdef CONFIG_XILINX_TB_WATCHDOG
+ hw_watchdog_disable();
#endif
+
+ puts ("Reseting board\n");
+ __asm__ __volatile__ (" mts rmsr, r0;" \
+ "bra r0");
+
return 0;
}