summaryrefslogtreecommitdiff
path: root/src/mainboard/via/epia-m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/via/epia-m')
-rw-r--r--src/mainboard/via/epia-m/mainboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/via/epia-m/mainboard.c b/src/mainboard/via/epia-m/mainboard.c
index 26e5916f01..da27732d63 100644
--- a/src/mainboard/via/epia-m/mainboard.c
+++ b/src/mainboard/via/epia-m/mainboard.c
@@ -30,6 +30,11 @@ void write_protect_vgabios(void)
device_t dev;
printk_info("write_protect_vgabios\n");
+ /* there are two possible devices. Just do both. */
+ dev = dev_find_device(PCI_VENDOR_ID_VIA, 0x3122, 0);
+ if(dev)
+ pci_write_config8(dev, 0x61, 0xaa);
+
dev = dev_find_device(PCI_VENDOR_ID_VIA, 0x3123, 0);
if(dev)
pci_write_config8(dev, 0x61, 0xaa);