src: Fix the warning "type 'hex' are always defined"
This is spotted using "./util/lint/kconfig_lint" While at it, do the check in C and not the preprocessor. Change-Id: Icfda267936a23d9d14832116d67571f42f685906 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/31050 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
d3fa7fa5d8
commit
b58e99dfa5
|
@ -23,7 +23,7 @@
|
||||||
#define ARCH_STAGE_HAS_BSS_SECTION 0
|
#define ARCH_STAGE_HAS_BSS_SECTION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_RAMTOP) || !CONFIG_RAMTOP
|
#if (CONFIG_RAMTOP == 0)
|
||||||
# error "CONFIG_RAMTOP not configured"
|
# error "CONFIG_RAMTOP not configured"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
|
|
||||||
#if !defined(CONFIG_MMCONF_BASE_ADDRESS) || !CONFIG_MMCONF_BASE_ADDRESS
|
#if (CONFIG_MMCONF_BASE_ADDRESS == 0)
|
||||||
#error "CONFIG_MMCONF_BASE_ADDRESS needs to be non-zero!"
|
#error "CONFIG_MMCONF_BASE_ADDRESS needs to be non-zero!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
# include "option_table.h"
|
# include "option_table.h"
|
||||||
# define BOOT_COUNT_CMOS_OFFSET (CMOS_VSTART_boot_count_offset >> 3)
|
# define BOOT_COUNT_CMOS_OFFSET (CMOS_VSTART_boot_count_offset >> 3)
|
||||||
#else
|
#else
|
||||||
# if defined(CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET) && CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET
|
# if (CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET != 0)
|
||||||
# define BOOT_COUNT_CMOS_OFFSET CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET
|
# define BOOT_COUNT_CMOS_OFFSET CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET
|
||||||
# else
|
# else
|
||||||
# error "Must configure CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET"
|
# error "Must configure CONFIG_ELOG_BOOT_COUNT_CMOS_OFFSET"
|
||||||
|
|
|
@ -198,7 +198,7 @@ unsigned int read_option_lowlevel(unsigned int start, unsigned int size,
|
||||||
# include "option_table.h"
|
# include "option_table.h"
|
||||||
# define CMOS_POST_OFFSET (CMOS_VSTART_cmos_post_offset >> 3)
|
# define CMOS_POST_OFFSET (CMOS_VSTART_cmos_post_offset >> 3)
|
||||||
#else
|
#else
|
||||||
# if defined(CONFIG_CMOS_POST_OFFSET) && CONFIG_CMOS_POST_OFFSET
|
# if (CONFIG_CMOS_POST_OFFSET != 0)
|
||||||
# define CMOS_POST_OFFSET CONFIG_CMOS_POST_OFFSET
|
# define CMOS_POST_OFFSET CONFIG_CMOS_POST_OFFSET
|
||||||
# else
|
# else
|
||||||
# error "Must configure CONFIG_CMOS_POST_OFFSET"
|
# error "Must configure CONFIG_CMOS_POST_OFFSET"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
|
|
||||||
#if !defined(CONFIG_PCR_BASE_ADDRESS) || (CONFIG_PCR_BASE_ADDRESS == 0)
|
#if (CONFIG_PCR_BASE_ADDRESS == 0)
|
||||||
#error "PCR_BASE_ADDRESS need to be non-zero!"
|
#error "PCR_BASE_ADDRESS need to be non-zero!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -170,12 +170,12 @@ void soc_silicon_init_params(SILICON_INIT_UPD *params)
|
||||||
params->LockDownConfigSpiEiss = 0;
|
params->LockDownConfigSpiEiss = 0;
|
||||||
}
|
}
|
||||||
/* only replacing preexisting subsys ID defaults when non-zero */
|
/* only replacing preexisting subsys ID defaults when non-zero */
|
||||||
#if defined(CONFIG_SUBSYSTEM_VENDOR_ID) && CONFIG_SUBSYSTEM_VENDOR_ID
|
if (CONFIG_SUBSYSTEM_VENDOR_ID != 0)
|
||||||
params->PchConfigSubSystemVendorId = CONFIG_SUBSYSTEM_VENDOR_ID;
|
params->PchConfigSubSystemVendorId = CONFIG_SUBSYSTEM_VENDOR_ID;
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_SUBSYSTEM_DEVICE_ID) && CONFIG_SUBSYSTEM_DEVICE_ID
|
if (CONFIG_SUBSYSTEM_DEVICE_ID != 0)
|
||||||
params->PchConfigSubSystemId = CONFIG_SUBSYSTEM_DEVICE_ID;
|
params->PchConfigSubSystemId = CONFIG_SUBSYSTEM_DEVICE_ID;
|
||||||
#endif
|
|
||||||
params->WakeConfigWolEnableOverride =
|
params->WakeConfigWolEnableOverride =
|
||||||
config->WakeConfigWolEnableOverride;
|
config->WakeConfigWolEnableOverride;
|
||||||
params->WakeConfigPcieWakeFromDeepSx =
|
params->WakeConfigPcieWakeFromDeepSx =
|
||||||
|
|
|
@ -391,14 +391,16 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
|
||||||
params->SpiFlashCfgLockDown = 0;
|
params->SpiFlashCfgLockDown = 0;
|
||||||
}
|
}
|
||||||
/* only replacing preexisting subsys ID defaults when non-zero */
|
/* only replacing preexisting subsys ID defaults when non-zero */
|
||||||
#if defined(CONFIG_SUBSYSTEM_VENDOR_ID) && CONFIG_SUBSYSTEM_VENDOR_ID
|
if (CONFIG_SUBSYSTEM_VENDOR_ID != 0) {
|
||||||
params->DefaultSvid = CONFIG_SUBSYSTEM_VENDOR_ID;
|
params->DefaultSvid = CONFIG_SUBSYSTEM_VENDOR_ID;
|
||||||
params->PchSubSystemVendorId = CONFIG_SUBSYSTEM_VENDOR_ID;
|
params->PchSubSystemVendorId = CONFIG_SUBSYSTEM_VENDOR_ID;
|
||||||
#endif
|
}
|
||||||
#if defined(CONFIG_SUBSYSTEM_DEVICE_ID) && CONFIG_SUBSYSTEM_DEVICE_ID
|
|
||||||
params->DefaultSid = CONFIG_SUBSYSTEM_DEVICE_ID;
|
if (CONFIG_SUBSYSTEM_DEVICE_ID != 0) {
|
||||||
params->PchSubSystemId = CONFIG_SUBSYSTEM_DEVICE_ID;
|
params->DefaultSid = CONFIG_SUBSYSTEM_DEVICE_ID;
|
||||||
#endif
|
params->PchSubSystemId = CONFIG_SUBSYSTEM_DEVICE_ID;
|
||||||
|
}
|
||||||
|
|
||||||
params->PchPmWolEnableOverride = config->WakeConfigWolEnableOverride;
|
params->PchPmWolEnableOverride = config->WakeConfigWolEnableOverride;
|
||||||
params->PchPmPcieWakeFromDeepSx = config->WakeConfigPcieWakeFromDeepSx;
|
params->PchPmPcieWakeFromDeepSx = config->WakeConfigPcieWakeFromDeepSx;
|
||||||
params->PchPmDeepSxPol = config->PmConfigDeepSxPol;
|
params->PchPmDeepSxPol = config->PmConfigDeepSxPol;
|
||||||
|
|
Loading…
Reference in New Issue