via/cx700: Fix hidden compile error and make sure it won't hide again

A wrong function name made an #ifdef'd code path not compile. Fix that,
and also use IS_ENABLED() to make sure that such issues won't come up
again there.

Change-Id: Iccb98842dde498cce32cd86a770e22a506ad4cc2
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/12296
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Patrick Georgi
2015-10-31 16:12:51 +01:00
committed by Patrick Georgi
parent b31017b3ac
commit dd4390b6e0

View File

@@ -1250,14 +1250,14 @@ static void sdram_enable(const struct mem_controller *ctrl)
} }
} }
#ifdef MEM_WIDTH_32BIT_MODE if (IS_ENABLED(MEM_WIDTH_32BIT_MODE)) {
/****************************************************************/ /********************************************************/
/* Set Dram 32bit Mode */ /* Set Dram 32bit Mode */
/****************************************************************/ /********************************************************/
reg8 = pci_read_config8(MEMCTRL, 0x6c); reg8 = pci_read_config8(MEMCTRL, 0x6c);
reg8 |= 0x20; reg8 |= 0x20;
pci_write_config(MEMCTRL, 0x6c, reg8); pci_write_config8(MEMCTRL, 0x6c, reg8);
#endif }
/****************************************************************/ /****************************************************************/
/* Find the DQSI Low/High bound and save it to Scratch register */ /* Find the DQSI Low/High bound and save it to Scratch register */