summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/autoport/bd82x6x.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/util/autoport/bd82x6x.go b/util/autoport/bd82x6x.go
index c4dcf0dd28..265cb6f4b3 100644
--- a/util/autoport/bd82x6x.go
+++ b/util/autoport/bd82x6x.go
@@ -302,23 +302,21 @@ func (b bd82x6x) Scan(ctx Context, addr PCIDevData) {
sb := Create(ctx, "romstage.c")
defer sb.Close()
Add_gpl(sb)
- sb.WriteString(`#include <stdint.h>
+ sb.WriteString(`/* FIXME: Check if all includes are needed. */
+
+#include <stdint.h>
#include <string.h>
-#include <lib.h>
#include <timestamp.h>
#include <arch/byteorder.h>
#include <arch/io.h>
-#include <device/pci_def.h>
-#include <device/pnp_def.h>
-#include <cpu/x86/lapic.h>
-#include <arch/acpi.h>
+#include <device/mmio.h>
+#include <device/pci_ops.h>
+#include <device/pnp_ops.h>
#include <console/console.h>
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <northbridge/intel/sandybridge/raminit_native.h>
#include <southbridge/intel/bd82x6x/pch.h>
#include <southbridge/intel/common/gpio.h>
-#include <arch/cpu.h>
-#include <cpu/x86/msr.h>
void pch_enable_lpc(void)
{