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>
This commit is contained in:
committed by
Patrick Georgi
parent
9dc1c51db4
commit
f9c939029b
@@ -707,15 +707,10 @@ static void gma_func0_disable(struct device *dev)
|
||||
|
||||
static void gma_func1_init(struct device *dev)
|
||||
{
|
||||
u8 val;
|
||||
|
||||
if (!CONFIG(NO_GFX_INIT))
|
||||
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
||||
|
||||
if (get_option(&val, "tft_brightness") == CB_SUCCESS)
|
||||
pci_write_config8(dev, 0xf4, val);
|
||||
else
|
||||
pci_write_config8(dev, 0xf4, 0xff);
|
||||
pci_write_config8(dev, 0xf4, get_int_option("tft_brightness", 0xff));
|
||||
}
|
||||
|
||||
static void gma_generate_ssdt(const struct device *device)
|
||||
|
Reference in New Issue
Block a user