summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2007-06-14 19:56:58 -0500
committerKim Phillips <kim.phillips@freescale.com>2007-06-14 19:56:58 -0500
commitb721ff745d3e5b4fe6bb8db430553d54dba4bd17 (patch)
tree8f267466c28352bac8e2f59358411d0860bb0bcf /common
parent5b1313fb2758ffce8b624457f777d8cc6709608d (diff)
parent9912121f7ed804ea58fd62f3f230b5dcfc357d88 (diff)
downloadu-boot-imx-b721ff745d3e5b4fe6bb8db430553d54dba4bd17.zip
u-boot-imx-b721ff745d3e5b4fe6bb8db430553d54dba4bd17.tar.gz
u-boot-imx-b721ff745d3e5b4fe6bb8db430553d54dba4bd17.tar.bz2
Merge git://www.denx.de/git/u-boot
Diffstat (limited to 'common')
-rw-r--r--common/cmd_flash.c4
-rw-r--r--common/cmd_ide.c4
-rw-r--r--common/cmd_misc.c2
-rw-r--r--common/cmd_pcmcia.c2
-rw-r--r--common/main.c2
-rw-r--r--common/soft_i2c.c3
6 files changed, 10 insertions, 7 deletions
diff --git a/common/cmd_flash.c b/common/cmd_flash.c
index cb1c5bb..a34ab79 100644
--- a/common/cmd_flash.c
+++ b/common/cmd_flash.c
@@ -690,7 +690,7 @@ U_BOOT_CMD(
);
U_BOOT_CMD(
- erase, 3, 1, do_flerase,
+ erase, 3, 0, do_flerase,
"erase - erase FLASH memory\n",
"start end\n"
" - erase FLASH from addr 'start' to addr 'end'\n"
@@ -704,7 +704,7 @@ U_BOOT_CMD(
);
U_BOOT_CMD(
- protect, 4, 1, do_protect,
+ protect, 4, 0, do_protect,
"protect - enable or disable FLASH write protection\n",
"on start end\n"
" - protect FLASH from addr 'start' to addr 'end'\n"
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index ce99a41..e308474 100644
--- a/common/cmd_ide.c
+++ b/common/cmd_ide.c
@@ -514,11 +514,11 @@ void ide_init (void)
unsigned char c;
int i, bus;
#if defined(CONFIG_AMIGAONEG3SE) || defined(CONFIG_SC3)
- unsigned int ata_reset_time;
+ unsigned int ata_reset_time = ATA_RESET_TIME;
+ char *s;
#endif
#ifdef CONFIG_AMIGAONEG3SE
unsigned int max_bus_scan;
- char *s;
#endif
#ifdef CONFIG_IDE_8xx_PCCARD
extern int pcmcia_on (void);
diff --git a/common/cmd_misc.c b/common/cmd_misc.c
index 67ee9e8..a99222d 100644
--- a/common/cmd_misc.c
+++ b/common/cmd_misc.c
@@ -63,7 +63,7 @@ U_BOOT_CMD(
#endif /* CONFIG_COMMANDS & CFG_CMD_IRQ */
U_BOOT_CMD(
- sleep , 2, 2, do_sleep,
+ sleep , 2, 1, do_sleep,
"sleep - delay execution for some time\n",
"N\n"
" - delay execution for N seconds (N is _decimal_ !!!)\n"
diff --git a/common/cmd_pcmcia.c b/common/cmd_pcmcia.c
index 2eb5b26..b1a594f 100644
--- a/common/cmd_pcmcia.c
+++ b/common/cmd_pcmcia.c
@@ -87,7 +87,7 @@ int do_pinit (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
U_BOOT_CMD(
- pinit, 2, 1, do_pinit,
+ pinit, 2, 0, do_pinit,
"pinit - PCMCIA sub-system\n",
"on - power on PCMCIA socket\n"
"pinit off - power off PCMCIA socket\n"
diff --git a/common/main.c b/common/main.c
index 09ee64b..553ac35 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1336,7 +1336,7 @@ int run_command (const char *cmd, int flag)
/* Did the user stop this? */
if (had_ctrlc ())
- return 0; /* if stopped then not repeatable */
+ return -1; /* if stopped then not repeatable */
}
return rc ? rc : repeatable;
diff --git a/common/soft_i2c.c b/common/soft_i2c.c
index edad51b..0f6e3a9 100644
--- a/common/soft_i2c.c
+++ b/common/soft_i2c.c
@@ -36,6 +36,9 @@
#ifdef CONFIG_IXP425 /* only valid for IXP425 */
#include <asm/arch/ixp425.h>
#endif
+#ifdef CONFIG_LPC2292
+#include <asm/arch/hardware.h>
+#endif
#include <i2c.h>
#if defined(CONFIG_SOFT_I2C)