Commit d63b5b4fbb401e2ffbce5083c7f3d9f8045651ba

Authored by Simon Glass
1 parent 4e6bafa568

sandbox: Enable more console options

Enable the pre-console buffer, displaying the model and post-relocation
console announce on sandbox. Also add a model name to the device tree.
This allows testing of these features.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Stephen Warren <swarren@nvidia.com>

Showing 4 changed files with 5 additions and 1 deletions Side-by-side Diff

arch/sandbox/dts/sandbox.dts
... ... @@ -5,6 +5,7 @@
5 5 / {
6 6 #address-cells = <1>;
7 7 #size-cells = <1>;
  8 + model = "sandbox";
8 9  
9 10 aliases {
10 11 eth5 = "/eth@90000000";
... ... @@ -488,7 +488,7 @@
488 488  
489 489 config DISPLAY_BOARDINFO
490 490 bool "Display information about the board during start up"
491   - default y if ARM || M68K || MIPS || PPC || XTENSA
  491 + default y if ARM || M68K || MIPS || PPC || SANDBOX || XTENSA
492 492 help
493 493 Display information about the board that U-Boot is running on
494 494 when U-Boot starts up. The board function checkboard() is called
configs/sandbox_defconfig
... ... @@ -14,6 +14,8 @@
14 14 CONFIG_CONSOLE_RECORD=y
15 15 CONFIG_CONSOLE_RECORD_OUT_SIZE=0x1000
16 16 CONFIG_SILENT_CONSOLE=y
  17 +CONFIG_PRE_CONSOLE_BUFFER=y
  18 +CONFIG_PRE_CON_BUF_ADDR=0
17 19 CONFIG_CMD_CPU=y
18 20 CONFIG_CMD_LICENSE=y
19 21 CONFIG_CMD_BOOTZ=y
include/configs/sandbox.h
... ... @@ -41,6 +41,7 @@
41 41  
42 42 #define CONFIG_SYS_LONGHELP /* #undef to save memory */
43 43 #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  44 +#define CONFIG_DISPLAY_BOARDINFO_LATE
44 45  
45 46 /* Print Buffer Size */
46 47 #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)