summaryrefslogtreecommitdiff
path: root/src/mainboard/dmp/vortex86ex/romstage.c
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 21:45:13 -0600
committerMartin Roth <martinroth@google.com>2017-07-06 00:19:48 +0000
commitf95911ad3765c0f94db241b0c95a6c0a8c608077 (patch)
tree9ba34618cff9bbc021348458468d1de0feeaa4b2 /src/mainboard/dmp/vortex86ex/romstage.c
parent1bf55b4070bef2be8259f3153cade27121127b4a (diff)
downloadcoreboot-f95911ad3765c0f94db241b0c95a6c0a8c608077.tar.xz
mainboard/[a-e]: add IS_ENABLED() around Kconfig symbol references
Change-Id: Icca8bac5e67f83dfc5a8f5ef1cb87c6432e0a236 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/dmp/vortex86ex/romstage.c')
-rw-r--r--src/mainboard/dmp/vortex86ex/romstage.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mainboard/dmp/vortex86ex/romstage.c b/src/mainboard/dmp/vortex86ex/romstage.c
index d2cc146059..108cc1d669 100644
--- a/src/mainboard/dmp/vortex86ex/romstage.c
+++ b/src/mainboard/dmp/vortex86ex/romstage.c
@@ -72,25 +72,25 @@ void set_ex_powerdown_control(void)
{
u32 powerdown_ctrl;
powerdown_ctrl = pci_read_config32(SB, 0xbc);
-#if CONFIG_TEMP_POWERDOWN
+#if IS_ENABLED(CONFIG_TEMP_POWERDOWN)
powerdown_ctrl |= (1 << 31);
#endif
-#if CONFIG_SATA_POWERDOWN
+#if IS_ENABLED(CONFIG_SATA_POWERDOWN)
powerdown_ctrl |= (1 << 30);
#endif
-#if CONFIG_ADC_POWERDOWN
+#if IS_ENABLED(CONFIG_ADC_POWERDOWN)
powerdown_ctrl |= (1 << 28);
#endif
-#if CONFIG_PCIE0_POWERDOWN
+#if IS_ENABLED(CONFIG_PCIE0_POWERDOWN)
powerdown_ctrl |= (1 << 13);
#endif
-#if CONFIG_MAC_POWERDOWN
+#if IS_ENABLED(CONFIG_MAC_POWERDOWN)
powerdown_ctrl |= (1 << 3);
#endif
-#if CONFIG_USB1_POWERDOWN
+#if IS_ENABLED(CONFIG_USB1_POWERDOWN)
powerdown_ctrl |= (1 << 1);
#endif
-#if CONFIG_IDE_POWERDOWN
+#if IS_ENABLED(CONFIG_IDE_POWERDOWN)
powerdown_ctrl |= (1 << 0);
#endif
pci_write_config32(SB, 0xbc, powerdown_ctrl);
@@ -169,16 +169,16 @@ static void ex_uart_early_init(void)
static void init_wdt1(void)
{
-#if CONFIG_WDT1_INITIALIZE
-#if CONFIG_WDT1_ENABLE
+#if IS_ENABLED(CONFIG_WDT1_INITIALIZE)
+#if IS_ENABLED(CONFIG_WDT1_ENABLE)
outb(0x1 << 6, 0xa8);
#endif
u8 wdt1_signal_reg = 0;
-#if CONFIG_WDT1_SINGAL_NMI
+#if IS_ENABLED(CONFIG_WDT1_SINGAL_NMI)
wdt1_signal_reg = 0x0c << 4;
-#elif CONFIG_WDT1_SIGNAL_RESET
+#elif IS_ENABLED(CONFIG_WDT1_SIGNAL_RESET)
wdt1_signal_reg = 0x0d << 4;
-#elif CONFIG_WDT1_SIGNAL_SMI
+#elif IS_ENABLED(CONFIG_WDT1_SIGNAL_SMI)
wdt1_signal_reg = 0x0e << 4;
#endif
outb(wdt1_signal_reg, 0xa9);