Patrick Georgi has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/31927 )
Change subject: util/autoport: fix default headers ......................................................................
util/autoport: fix default headers
Change-Id: I1b46d76a86f5db02ebc452d43472b51f0414ad96 Signed-off-by: Angel Pons th3fanbus@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/31927 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: HAOUAS Elyes ehaouas@noos.fr --- M util/autoport/bd82x6x.go 1 file changed, 6 insertions(+), 8 deletions(-)
Approvals: build bot (Jenkins): Verified HAOUAS Elyes: Looks good to me, approved
diff --git a/util/autoport/bd82x6x.go b/util/autoport/bd82x6x.go index c4dcf0d..265cb6f 100644 --- a/util/autoport/bd82x6x.go +++ b/util/autoport/bd82x6x.go @@ -302,23 +302,21 @@ 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) {