diff options
author | Simon Glass <sjg@chromium.org> | 2011-12-20 16:01:11 -0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2012-01-05 19:26:36 -0800 |
commit | 8f5f2bf0c56bd1d024f11f872db09f02fb6ad03a (patch) | |
tree | cec2f830391d34f801459796f31a5cc8cbaaed16 /common | |
parent | 2cc6f8645dc2edb7a65e128b23314cfdaf0d22d1 (diff) |
Don't show bootstage report on silent console unless asked
This behaviour is not expected, so remove it. For devs the fdt config
option bootstage-force-report is provided to generate this report.
BUG=chromium-os:20020
TEST=build and boot on Kaen, see that message does not appear
Change-Id: I0394aacfbfed79594dbe44157a557562c2947345
Reviewed-on: https://gerrit.chromium.org/gerrit/13378
Commit-Ready: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/bootstage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/bootstage.c b/common/bootstage.c index a89ce6d26bc..99c52ae41f1 100644 --- a/common/bootstage.c +++ b/common/bootstage.c @@ -29,6 +29,7 @@ #include <common.h> #include <libfdt.h> +#include <fdt_decode.h> DECLARE_GLOBAL_DATA_PTR; @@ -199,8 +200,11 @@ void bootstage_report(void) uint32_t prev; u32 flags = gd->flags; +#ifdef CONFIG_OF_CONTROL /* Force this information to display even on silent console */ - gd->flags &= ~GD_FLG_SILENT; + if (fdt_decode_get_config_int(gd->blob, "bootstage-force-report", 0)) + gd->flags &= ~GD_FLG_SILENT; +#endif puts("Timer summary in microseconds:\n"); printf("%11s%11s %s\n", "Mark", "Elapsed", "Stage"); |