diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:02:03 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:02:03 +0200 |
commit | 758a1107f87b255678551ada7a090cc7ba28faec (patch) | |
tree | e8069c7d177feb6539709ac035025a4d6c58c161 /cpu | |
parent | 6877b3bde7929980137028c55161aea8424e6b1b (diff) | |
download | barebox-758a1107f87b255678551ada7a090cc7ba28faec.tar.gz barebox-758a1107f87b255678551ada7a090cc7ba28faec.tar.xz |
svn_rev_538
several powerpc fixes
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/mpc5xxx/cpu.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c index 6d5ea03f5e..c83526928c 100644 --- a/cpu/mpc5xxx/cpu.c +++ b/cpu/mpc5xxx/cpu.c @@ -30,6 +30,7 @@ #include <command.h> #include <mpc5xxx.h> #include <asm/processor.h> +#include <asm/byteorder.h> #include <init.h> #include <types.h> @@ -73,8 +74,7 @@ int checkcpu (void) /* ------------------------------------------------------------------------- */ -int -do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) +void do_reset (void) { ulong msr; /* Interrupts and MMU off */ @@ -87,9 +87,6 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) *(vu_long *)(MPC5XXX_GPT0_COUNTER) = 0x0001000f; *(vu_long *)(MPC5XXX_GPT0_ENABLE) = 0x9004; /* wden|ce|timer_ms */ while(1); - - return 1; - } /* ------------------------------------------------------------------------- */ |