From f9c939029bf0c07bab7ce623b99d8abcc69f8362 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 2 Nov 2020 22:21:54 +0100 Subject: nb/intel: Use get_int_option() Change-Id: I8896531d6df729709456bc6e79e02136d9ea7b3b Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/47112 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/northbridge/intel/sandybridge/early_init.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/northbridge/intel/sandybridge') diff --git a/src/northbridge/intel/sandybridge/early_init.c b/src/northbridge/intel/sandybridge/early_init.c index 922c4b76f6..51b85120c3 100644 --- a/src/northbridge/intel/sandybridge/early_init.c +++ b/src/northbridge/intel/sandybridge/early_init.c @@ -86,10 +86,9 @@ static void sandybridge_setup_graphics(void) printk(BIOS_DEBUG, "Initializing Graphics...\n"); - if (get_option(&gfxsize, "gfx_uma_size") != CB_SUCCESS) { - /* Setup IGD memory by setting GGC[7:3] = 1 for 32MB */ - gfxsize = 0; - } + /* Fall back to 32 MiB for IGD memory by setting GGC[7:3] = 1 */ + gfxsize = get_int_option("gfx_uma_size", 0); + reg16 = pci_read_config16(HOST_BRIDGE, GGC); reg16 &= ~0x00f8; reg16 |= (gfxsize + 1) << 3; -- cgit v1.2.3