summaryrefslogtreecommitdiff
path: root/board/incaip
diff options
context:
space:
mode:
authorShinya Kuribayashi <skuribay@ruby.dti.ne.jp>2008-03-25 21:30:07 +0900
committerShinya Kuribayashi <skuribay@ruby.dti.ne.jp>2008-03-25 21:30:07 +0900
commitb0c66af53ec9385ac2d1cc2e5d7d1ecdc81caf34 (patch)
treeed0880f3e56382fa40111c83587ec1b830d42939 /board/incaip
parentdecaba6f5cf386d569ac3997bebb871b966c6b18 (diff)
downloadu-boot-imx-b0c66af53ec9385ac2d1cc2e5d7d1ecdc81caf34.zip
u-boot-imx-b0c66af53ec9385ac2d1cc2e5d7d1ecdc81caf34.tar.gz
u-boot-imx-b0c66af53ec9385ac2d1cc2e5d7d1ecdc81caf34.tar.bz2
[MIPS] Introduce _machine_restart
Handles machine specific functions by using weak functions. Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Diffstat (limited to 'board/incaip')
-rw-r--r--board/incaip/incaip.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/incaip/incaip.c b/board/incaip/incaip.c
index dbf0ecc..c624b3d 100644
--- a/board/incaip/incaip.c
+++ b/board/incaip/incaip.c
@@ -26,9 +26,15 @@
#include <asm/addrspace.h>
#include <asm/inca-ip.h>
#include <asm/io.h>
+#include <asm/reboot.h>
extern uint incaip_get_cpuclk(void);
+void _machine_restart(void)
+{
+ *INCA_IP_WDT_RST_REQ = 0x3f;
+}
+
static ulong max_sdram_size(void)
{
/* The only supported SDRAM data width is 16bit.