7d484d87c23dea02c5ab0f22ccefc4c7ab73a330
[coreboot.git] / src / southbridge / broadcom / bcm5785 / bcm5785_enable_rom.c
1 static void bcm5785_enable_rom(void)
2 {
3         unsigned char byte;
4         device_t addr;
5
6         /* Enable 4MB rom access at 0xFFC00000 - 0xFFFFFFFF */
7         /* Locate the BCM 5785 SB PCI Main */
8         addr = pci_locate_device(PCI_ID(0x1166, 0x0205), 0); // 0x0201?
9
10         /* Set the 4MB enable bit bit */
11         byte = pci_read_config8(addr, 0x41);
12         byte |= 0x0e;
13         pci_write_config8(addr, 0x41, byte);
14 }