summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>2007-09-12 12:36:53 +0200
committerWolfgang Denk <wd@denx.de>2007-09-15 21:05:33 +0200
commitc750d2e6692a000a82f29de7bf24e3dc21239161 (patch)
tree43698bd06c072f8970e78ad443dfc63294322ad7 /common
parentdcb88630290d2bcd803386dd4c2be73142994c4f (diff)
downloadu-boot-imx-c750d2e6692a000a82f29de7bf24e3dc21239161.zip
u-boot-imx-c750d2e6692a000a82f29de7bf24e3dc21239161.tar.gz
u-boot-imx-c750d2e6692a000a82f29de7bf24e3dc21239161.tar.bz2
NAND: Add CFG_NAND_QUIET option
This config option sets the default for the progress information output behavior that can also be configured through the 'quiet' environment variable. The legacy NAND code does not print the current progress info on the console. So this option is for backward compatibility for units that are in the field and where setting the quiet variable is not an option. With CFG_NAND_QUIET set to '1' the console progress info is turned off. This can still be overwritten through the environment variable. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index 254a775..aeb76e5 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -161,7 +161,11 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
ulong addr, off, size;
char *cmd, *s;
nand_info_t *nand;
+#ifdef CFG_NAND_QUIET
+ int quiet = CFG_NAND_QUIET;
+#else
int quiet = 0;
+#endif
const char *quiet_str = getenv("quiet");
/* at least two arguments please */