summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/amd8111/amd8111_enable_rom.c
blob: 8c4e4da5da98959a1b0539079f2023cdc6c4a078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

static void amd8111_enable_rom(void)
{
	unsigned char byte;
	device_t dev;

	/* Enable 5MB rom access at 0xFFB00000 - 0xFFFFFFFF */
	/* Locate the amd8111 */
	dev = pci_locate_device(PCI_ID(0x1022, 0x7468), 0);

	/* Set the 5MB enable bits */
	byte = pci_read_config8(dev, 0x43);
	byte |= 0xC0;
	pci_write_config8(dev, 0x43, byte);
}