aboutsummaryrefslogtreecommitdiffstats
path: root/common/spl/spl.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-08-21 10:19:04 -0600
committerTom Rini <trini@konsulko.com>2024-08-26 14:05:38 -0600
commitf44fded23620e264525e482efbc2e061fab5702b (patch)
treea308a5f54592bf27183c684aba650a7618d25077 /common/spl/spl.c
parent30e331e9cb7c14400dae385ed7ceab56eaa1e005 (diff)
downloadu-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.c2
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 " - "