summaryrefslogtreecommitdiff
path: root/src/southbridge/via/k8t890/dram.c
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 21:30:42 -0600
committerMartin Roth <martinroth@google.com>2017-07-13 23:54:56 +0000
commit1858d6a90a81aac67cde90190d8a332b2e817c9d (patch)
treee9d62ce12354e419a8c055da12d092642fac4d88 /src/southbridge/via/k8t890/dram.c
parent32c27c2f850c64cdbf78acd00f0c2ce4b535af64 (diff)
downloadcoreboot-1858d6a90a81aac67cde90190d8a332b2e817c9d.tar.xz
src/southbridge: add IS_ENABLED() around Kconfig symbol references
Change-Id: Ie965cbcf7f7b6f6c9e9a69e2a1ff0ba491246cbe Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20353 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/southbridge/via/k8t890/dram.c')
-rw-r--r--src/southbridge/via/k8t890/dram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/via/k8t890/dram.c b/src/southbridge/via/k8t890/dram.c
index e907528f70..1f126ccaab 100644
--- a/src/southbridge/via/k8t890/dram.c
+++ b/src/southbridge/via/k8t890/dram.c
@@ -69,7 +69,7 @@ static void dram_enable(struct device *dev)
static void dram_enable_k8m890(struct device *dev)
{
-#if CONFIG_GFXUMA
+#if IS_ENABLED(CONFIG_GFXUMA)
msr_t msr;
int ret;
unsigned int fbbits;
@@ -121,7 +121,7 @@ k8m890_host_fb_size_get(void)
static void dram_init_fb(struct device *dev)
{
-#if CONFIG_GFXUMA
+#if IS_ENABLED(CONFIG_GFXUMA)
/* Important bits:
* Enable the internal GFX bit 7 of reg 0xa1 plus in same reg:
* bits 6:4 X fbuffer size will be 2^(X+2) or 100 = 64MB, 101 = 128MB