summaryrefslogtreecommitdiff
path: root/cpu/mpc83xx
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-05 19:49:35 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-05 19:49:35 +0200
commit07a2505f67e091ff70506ae6a5022b416211df44 (patch)
tree03c0164b0e6f5affc2866a8573cbb43a6e798823 /cpu/mpc83xx
parentcbf9c117282b8729bdb86071997b58fcab58c444 (diff)
downloadu-boot-imx-07a2505f67e091ff70506ae6a5022b416211df44.zip
u-boot-imx-07a2505f67e091ff70506ae6a5022b416211df44.tar.gz
u-boot-imx-07a2505f67e091ff70506ae6a5022b416211df44.tar.bz2
Fix compiler warnings
Diffstat (limited to 'cpu/mpc83xx')
-rw-r--r--cpu/mpc83xx/cpu.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
index 73d125a..c84aeb4 100644
--- a/cpu/mpc83xx/cpu.c
+++ b/cpu/mpc83xx/cpu.c
@@ -22,7 +22,7 @@
* Change log:
*
* 20050101: Eran Liberty (liberty@freescale.com)
- * Initial file creating (porting from 85XX & 8260)
+ * Initial file creating (porting from 85XX & 8260)
*/
/*
@@ -74,7 +74,10 @@ void upmconfig (uint upm, uint *table, uint size)
int
do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
{
- ulong msr, addr;
+ ulong msr;
+#ifndef MPC83xx_RESET
+ ulong addr;
+#endif
volatile immap_t *immap = (immap_t *) CFG_IMMRBAR;
@@ -97,12 +100,14 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
udelay(200);
/* perform reset, only one bit */
- immap->reset.rcr = RCR_SWHR;
-#else
- immap->reset.rmr = RMR_CSRE; /* Checkstop Reset enable */
+ immap->reset.rcr = RCR_SWHR;
+
+#else /* ! MPC83xx_RESET */
- /* Interrupts and MMU off */
- __asm__ __volatile__ ("mfmsr %0":"=r" (msr):);
+ immap->reset.rmr = RMR_CSRE; /* Checkstop Reset enable */
+
+ /* Interrupts and MMU off */
+ __asm__ __volatile__ ("mfmsr %0":"=r" (msr):);
msr &= ~(MSR_ME | MSR_EE | MSR_IR | MSR_DR);
__asm__ __volatile__ ("mtmsr %0"::"r" (msr));
@@ -116,7 +121,8 @@ do_reset (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
printf("resetting the board.");
printf("\n");
((void (*)(void)) addr) ();
-#endif
+#endif /* MPC83xx_RESET */
+
return 1;
}