payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / ocp / deltalake / loglevel_vpd.c
blobaa85cb9d5796987cf69ba7d4586f960dab391397
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <drivers/vpd/vpd.h>
6 #include "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;
16 return log_level;