summaryrefslogtreecommitdiff
path: root/include/console.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-06-15 21:37:50 -0600
committerSimon Glass <sjg@chromium.org>2017-07-11 10:08:19 -0600
commitb0895384bebb6a4a2ea5bbdb0941b771b5875012 (patch)
tree7c9289aa8c8155abcfc6462d7dbf5795e5cd1f9e /include/console.h
parent6c519f2dc4a59a9d81f087d990e24d1e6444c86d (diff)
Allow displaying the U-Boot banner on a video display
At present the U-Boot banner is only displayed on the serial console. If this is not visible to the user, the banner does not show. Some devices have a video display which can usefully display this information. Add a banner which is printed after relocation only on non-serial devices if CONFIG_DISPLAY_BOARDINFO_LATE is defined. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 3d37f6a53b..cea29ed6dc 100644
--- a/include/console.h
+++ b/include/console.h
@@ -42,6 +42,18 @@ void console_record_reset(void);
*/
void console_record_reset_enable(void);
+/**
+ * console_announce_r() - print a U-Boot console on non-serial consoles
+ *
+ * When U-Boot starts up with a display it generally does not announce itself
+ * on the display. The banner is instead emitted on the UART before relocation.
+ * This function prints a banner on devices which (we assume) did not receive
+ * it before relocation.
+ *
+ * @return 0 (meaning no errors)
+ */
+int console_announce_r(void);
+
/*
* CONSOLE multiplexing.
*/