mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
@@ -93,15 +93,6 @@ struct global_data {
|
||||
*/
|
||||
unsigned long board_type;
|
||||
#endif
|
||||
/**
|
||||
* @have_console: console is available
|
||||
*
|
||||
* A value of 1 indicates that serial_init() was called and a console
|
||||
* is available.
|
||||
* A value of 0 indicates that console input and output drivers shall
|
||||
* not be called.
|
||||
*/
|
||||
unsigned long have_console;
|
||||
#if CONFIG_IS_ENABLED(PRE_CONSOLE_BUFFER)
|
||||
/**
|
||||
* @precon_buf_idx: pre-console buffer index
|
||||
@@ -709,6 +700,12 @@ enum gd_flags {
|
||||
* @GD_FLG_UPL: Read/write a Universal Payload (UPL) handoff
|
||||
*/
|
||||
GD_FLG_UPL = 0x4000000,
|
||||
/**
|
||||
* @GD_FLG_HAVE_CONSOLE: serial_init() was called and a console
|
||||
* is available. When not set, indicates that console input and output
|
||||
* drivers shall not be called.
|
||||
*/
|
||||
GD_FLG_HAVE_CONSOLE = 0x8000000,
|
||||
};
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
Reference in New Issue
Block a user