aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/amd8111/amd8111_enable_rom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/amd/amd8111/amd8111_enable_rom.c')
-rw-r--r--src/southbridge/amd/amd8111/amd8111_enable_rom.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/southbridge/amd/amd8111/amd8111_enable_rom.c b/src/southbridge/amd/amd8111/amd8111_enable_rom.c
new file mode 100644
index 0000000000..d6045c3620
--- /dev/null
+++ b/src/southbridge/amd/amd8111/amd8111_enable_rom.c
@@ -0,0 +1,18 @@
+
+static void amd8111_enable_rom(void)
+{
+ unsigned char byte;
+ uint32_t addr;
+
+ /* Enable 4MB rom access at 0xFFC00000 - 0xFFFFFFFF */
+ /* Locate the amd8111 */
+ addr = pci_locate_device(PCI_ID(0x1022, 0x7468), 0);
+
+ /* Refine the address to point at the rom enable byte */
+ addr += 0x43;
+
+ /* Set the 4MB enable bit bit */
+ byte = pci_read_config8(addr);
+ byte |= 0x80;
+ pci_write_config8(addr, byte);
+}