summaryrefslogtreecommitdiff
path: root/board/purple/purple.c
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/purple/purple.c
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/purple/purple.c')
-rw-r--r--board/purple/purple.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/purple/purple.c b/board/purple/purple.c
index 74718af..13a1455 100644
--- a/board/purple/purple.c
+++ b/board/purple/purple.c
@@ -29,6 +29,7 @@
#include <asm/io.h>
#include <asm/addrspace.h>
#include <asm/cacheops.h>
+#include <asm/reboot.h>
#include "sconsole.h"
@@ -52,6 +53,13 @@ extern int asc_serial_getc (void);
extern int asc_serial_tstc (void);
extern void asc_serial_setbrg (void);
+void _machine_restart(void)
+{
+ void (*f)(void) = (void *) 0xbfc00000;
+
+ f();
+}
+
static void sdram_timing_init (ulong size)
{
register uint pass;