i82801gx/bootblock: Use macro instead of magic number
Change-Id: I2556c150f53d9580bc3b70ab49b3a2c8477c18ea Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32755 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
8dd518969c
commit
11a5b6b577
|
@ -23,10 +23,10 @@ static void enable_spi_prefetch(void)
|
||||||
|
|
||||||
dev = PCI_DEV(0, 0x1f, 0);
|
dev = PCI_DEV(0, 0x1f, 0);
|
||||||
|
|
||||||
reg8 = pci_read_config8(dev, 0xdc);
|
reg8 = pci_read_config8(dev, BIOS_CNTL);
|
||||||
reg8 &= ~(3 << 2);
|
reg8 &= ~(3 << 2);
|
||||||
reg8 |= (2 << 2); /* Prefetching and Caching Enabled */
|
reg8 |= (2 << 2); /* Prefetching and Caching Enabled */
|
||||||
pci_write_config8(dev, 0xdc, reg8);
|
pci_write_config8(dev, BIOS_CNTL, reg8);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bootblock_southbridge_init(void)
|
static void bootblock_southbridge_init(void)
|
||||||
|
|
Loading…
Reference in New Issue