1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <drivers/vpd/vpd.h>
8 int get_console_loglevel(void)
10 int log_level
= COREBOOT_LOG_LEVEL_DEFAULT
;
12 if (vpd_get_int(COREBOOT_LOG_LEVEL
, VPD_RW_THEN_RO
, &log_level
)) {
13 if (log_level
< 0 || log_level
>= BIOS_NEVER
)
14 log_level
= COREBOOT_LOG_LEVEL_DEFAULT
;