diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-11-02 22:21:54 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:01:28 +0000 |
commit | f9c939029bf0c07bab7ce623b99d8abcc69f8362 (patch) | |
tree | 0d4e2c812867a8e0dd96175bb8fc0c5a0c4db4dd /src/northbridge/intel/sandybridge | |
parent | 9dc1c51db47f43190c9396e9dd77f051530265a4 (diff) | |
download | coreboot-f9c939029bf0c07bab7ce623b99d8abcc69f8362.tar.xz |
nb/intel: Use get_int_option()
Change-Id: I8896531d6df729709456bc6e79e02136d9ea7b3b
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47112
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/northbridge/intel/sandybridge')
-rw-r--r-- | src/northbridge/intel/sandybridge/early_init.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |