nb/intel: add IS_ENABLED() around Kconfig symbol references
Some of these can be changed from #if to if(), but that will happen in a follow-on commmit. Change-Id: Id5bc8b75b1fa372f31982b8636f1efa4975b61a5 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20346 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
#include <string.h>
|
||||
|
||||
/* Debugging macros. */
|
||||
#if CONFIG_DEBUG_RAM_SETUP
|
||||
#if IS_ENABLED(CONFIG_DEBUG_RAM_SETUP)
|
||||
#define PRINTK_DEBUG(x...) printk(BIOS_DEBUG, x)
|
||||
#else
|
||||
#define PRINTK_DEBUG(x...)
|
||||
@ -134,7 +134,7 @@ static int decode_spd(struct dimminfo *d, int i)
|
||||
d->tRCD = d->spd_data[29];
|
||||
d->tWR = d->spd_data[36];
|
||||
d->ranks = d->sides; // XXX
|
||||
#if CONFIG_DEBUG_RAM_SETUP
|
||||
#if IS_ENABLED(CONFIG_DEBUG_RAM_SETUP)
|
||||
const char *ubso[2] = { "UB", "SO" };
|
||||
#endif
|
||||
PRINTK_DEBUG("%s-DIMM %d\n", &ubso[d->type][0], i);
|
||||
@ -318,7 +318,7 @@ static void sdram_read_spds(struct sysinfo *s)
|
||||
}
|
||||
}
|
||||
|
||||
#if CONFIG_DEBUG_RAM_SETUP
|
||||
#if IS_ENABLED(CONFIG_DEBUG_RAM_SETUP)
|
||||
static u32 fsb_reg_to_mhz(u32 speed)
|
||||
{
|
||||
return (speed * 133) + 667;
|
||||
|
Reference in New Issue
Block a user