coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX)
This patch is a raw application of find src/ -type f | xargs sed -i -e 's/IS_ENABLED\s*(CONFIG_/CONFIG(/g' Change-Id: I6262d6d5c23cabe23c242b4f38d446b74fe16b88 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31774 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
b3a8cc54db
commit
cd49cce7b7
920 changed files with 2285 additions and 2285 deletions
|
|
@ -24,12 +24,12 @@
|
|||
#include <stdint.h>
|
||||
#include <reg_script.h>
|
||||
|
||||
#if IS_ENABLED(CONFIG_ARCH_X86)
|
||||
#if CONFIG(ARCH_X86)
|
||||
#include <cpu/x86/msr.h>
|
||||
#endif
|
||||
|
||||
#define HAS_IOSF (IS_ENABLED(CONFIG_SOC_INTEL_BAYTRAIL) || \
|
||||
IS_ENABLED(CONFIG_SOC_INTEL_FSP_BAYTRAIL))
|
||||
#define HAS_IOSF (CONFIG(SOC_INTEL_BAYTRAIL) || \
|
||||
CONFIG(SOC_INTEL_FSP_BAYTRAIL))
|
||||
|
||||
#if HAS_IOSF
|
||||
#include <soc/iosf.h> /* TODO: wrap in <soc/reg_script.h, remove #ifdef? */
|
||||
|
|
@ -376,7 +376,7 @@ static void reg_script_write_iosf(struct reg_script_context *ctx)
|
|||
|
||||
static uint64_t reg_script_read_msr(struct reg_script_context *ctx)
|
||||
{
|
||||
#if IS_ENABLED(CONFIG_ARCH_X86)
|
||||
#if CONFIG(ARCH_X86)
|
||||
const struct reg_script *step = reg_script_get_step(ctx);
|
||||
msr_t msr = rdmsr(step->reg);
|
||||
uint64_t value = msr.hi;
|
||||
|
|
@ -388,7 +388,7 @@ static uint64_t reg_script_read_msr(struct reg_script_context *ctx)
|
|||
|
||||
static void reg_script_write_msr(struct reg_script_context *ctx)
|
||||
{
|
||||
#if IS_ENABLED(CONFIG_ARCH_X86)
|
||||
#if CONFIG(ARCH_X86)
|
||||
const struct reg_script *step = reg_script_get_step(ctx);
|
||||
msr_t msr;
|
||||
msr.hi = step->value >> 32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue