summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-10-07 10:41:42 +0200
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-10-20 17:29:48 +0000
commit1a847a11bec12edf7e8847a69b03c8ed641a22bc (patch)
tree480f549478a324c0a75a84d1e329759aaa2779ec
parent4944609bd0f475befb0bd4446bfb636601d4633c (diff)
nb/intel/i945: Clean up includes
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: I0e5f102d75647c9c184cb7422af30c9196503882 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68211 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/northbridge/intel/i945/errata.c1
-rw-r--r--src/northbridge/intel/i945/i945.h11
-rw-r--r--src/northbridge/intel/i945/romstage.c6
3 files changed, 7 insertions, 11 deletions
diff --git a/src/northbridge/intel/i945/errata.c b/src/northbridge/intel/i945/errata.c
index 3057ae92e2..c4219d94e3 100644
--- a/src/northbridge/intel/i945/errata.c
+++ b/src/northbridge/intel/i945/errata.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <stdint.h>
+
#include "i945.h"
#include "raminit.h"
diff --git a/src/northbridge/intel/i945/i945.h b/src/northbridge/intel/i945/i945.h
index d8993acdf0..3470a77eee 100644
--- a/src/northbridge/intel/i945/i945.h
+++ b/src/northbridge/intel/i945/i945.h
@@ -3,10 +3,11 @@
#ifndef NORTHBRIDGE_INTEL_I945_H
#define NORTHBRIDGE_INTEL_I945_H
-#define DEFAULT_X60BAR 0xfed13000
-
+#include <northbridge/intel/common/fixed_bars.h>
#include <southbridge/intel/i82801gx/i82801gx.h>
+#define DEFAULT_X60BAR 0xfed13000
+
/* Everything below this line is ignored in the DSDT */
#ifndef __ACPI__
@@ -86,12 +87,6 @@
#define BSM 0x5c
#define GCFC 0xf0 /* Graphics Clock Frequency & Gating Control */
-/*
- * MCHBAR
- */
-
-#include <northbridge/intel/common/fixed_bars.h>
-
/* Chipset Control Registers */
#define FSBPMC3 0x40 /* 32bit */
#define FSBPMC4 0x44 /* 32bit */
diff --git a/src/northbridge/intel/i945/romstage.c b/src/northbridge/intel/i945/romstage.c
index 0a61780cdc..61b9bcff43 100644
--- a/src/northbridge/intel/i945/romstage.c
+++ b/src/northbridge/intel/i945/romstage.c
@@ -1,12 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h>
-#include <cf9_reset.h>
#include <arch/romstage.h>
+#include <cf9_reset.h>
#include <northbridge/intel/i945/i945.h>
#include <northbridge/intel/i945/raminit.h>
-#include <southbridge/intel/i82801gx/i82801gx.h>
#include <southbridge/intel/common/pmclib.h>
+#include <southbridge/intel/i82801gx/i82801gx.h>
+#include <stdint.h>
__weak void mainboard_lpc_decode(void)
{