Remove #ifdef checks on Kconfig symbols
In coreboot, bool, hex, and int type symbols are ALWAYS defined. Change-Id: I58a36b37075988bb5ff67ac692c7d93c145b0dbc Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/12560 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
@@ -20,10 +20,6 @@
|
||||
#include <cpu/x86/post_code.h>
|
||||
#include <cbmem.h>
|
||||
|
||||
#ifndef CONFIG_FSP_LOC
|
||||
# error "CONFIG_FSP_LOC must be set."
|
||||
#endif
|
||||
|
||||
cmp $0, %eax
|
||||
je cache_as_ram
|
||||
mov $0xa0, %eax
|
||||
|
@@ -27,10 +27,6 @@
|
||||
#include <lib.h> // hexdump
|
||||
#include "fsp_util.h"
|
||||
|
||||
#ifndef CONFIG_VIRTUAL_ROM_SIZE
|
||||
#error "CONFIG_VIRTUAL_ROM_SIZE must be set."
|
||||
#endif
|
||||
|
||||
/* convert a pointer to flash area into the offset inside the flash */
|
||||
static inline u32 to_flash_offset(void *p) {
|
||||
return ((u32)p + CONFIG_VIRTUAL_ROM_SIZE);
|
||||
|
@@ -115,10 +115,6 @@ volatile u8 * find_fsp ()
|
||||
volatile u8 *fsp_ptr;
|
||||
#endif /* __PRE_RAM__ */
|
||||
|
||||
#ifndef CONFIG_FSP_LOC
|
||||
#error "CONFIG_FSP_LOC must be set."
|
||||
#endif
|
||||
|
||||
/* The FSP is stored in CBFS */
|
||||
fsp_ptr = (u8 *) CONFIG_FSP_LOC;
|
||||
|
||||
|
@@ -5,9 +5,6 @@
|
||||
#include "option_table.h"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_MAX_REBOOT_CNT
|
||||
#error "CONFIG_MAX_REBOOT_CNT not defined"
|
||||
#endif
|
||||
#if CONFIG_MAX_REBOOT_CNT > 15
|
||||
#error "CONFIG_MAX_REBOOT_CNT too high"
|
||||
#endif
|
||||
|
@@ -49,11 +49,6 @@
|
||||
|
||||
/* coreboot wrapper for TPM driver (end) */
|
||||
|
||||
#ifndef CONFIG_TPM_TIS_BASE_ADDRESS
|
||||
/* Base TPM address standard for x86 systems */
|
||||
#define CONFIG_TPM_TIS_BASE_ADDRESS 0xfed40000
|
||||
#endif
|
||||
|
||||
/* the macro accepts the locality value, but only locality 0 is operational */
|
||||
#define TIS_REG(LOCALITY, REG) \
|
||||
(void *)(CONFIG_TPM_TIS_BASE_ADDRESS + (LOCALITY << 12) + REG)
|
||||
|
Reference in New Issue
Block a user