diff options
author | Simon Glass <sjg@chromium.org> | 2024-08-21 10:19:04 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-26 14:05:38 -0600 |
commit | f44fded23620e264525e482efbc2e061fab5702b (patch) | |
tree | a308a5f54592bf27183c684aba650a7618d25077 /common/spl/spl.c | |
parent | 30e331e9cb7c14400dae385ed7ceab56eaa1e005 (diff) | |
download | u-boot-f44fded23620e264525e482efbc2e061fab5702b.tar.gz |
global_data: Convert have_console into a flag
We don't need a full word for this boolean value. Convert it into a flag
to save space in global_data.
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl/spl.c')
-rw-r--r-- | common/spl/spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c index 7c6e322ffd7..d4ec86ace16 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -838,7 +838,7 @@ void preloader_console_init(void) serial_init(); /* serial communications setup */ - gd->have_console = 1; + gd->flags |= GD_FLG_HAVE_CONSOLE; #if CONFIG_IS_ENABLED(BANNER_PRINT) puts("\nU-Boot " SPL_TPL_NAME " " PLAIN_VERSION " (" U_BOOT_DATE " - " |