summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/pci/onboard/onboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/pci/onboard/onboard.c b/src/drivers/pci/onboard/onboard.c
index c5059323fa..09ee9bdb91 100644
--- a/src/drivers/pci/onboard/onboard.c
+++ b/src/drivers/pci/onboard/onboard.c
@@ -11,9 +11,16 @@
#include <device/pci_ops.h>
#include "chip.h"
+static void onboard_enable(device_t dev)
+{
+ struct drivers_pci_onboard_config *conf;
+ conf = dev->chip_info;
+ dev->rom_address = conf->rom_address;
+}
struct chip_operations drivers_pci_onboard_ops = {
#if CONFIG_CHIP_NAME == 1
CHIP_NAME("Onboard PCI")
#endif
+ .enable_dev = onboard_enable,
};