summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-03-13 09:55:00 +0100
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-03-15 05:02:35 +0000
commit9330b25b6fe833b431d7837ad3b43ac8f68af216 (patch)
tree7d0ec048ec0c7b73274d62c2442aacee795c06d4 /src/southbridge
parent301d47fdd6547125f8e0418f2c05b3b586bd03cf (diff)
downloadcoreboot-9330b25b6fe833b431d7837ad3b43ac8f68af216.tar.xz
sb/via/common: Fix indirect includes
Change-Id: Id6565abd15d6904effbf55e5d1ea8664ef338c83 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31870 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/via/common/early_smbus_delay.c3
-rw-r--r--src/southbridge/via/common/early_smbus_is_busy.c3
-rw-r--r--src/southbridge/via/common/early_smbus_print_error.c2
-rw-r--r--src/southbridge/via/common/early_smbus_read_byte.c3
-rw-r--r--src/southbridge/via/common/early_smbus_reset.c3
-rw-r--r--src/southbridge/via/common/early_smbus_wait_until_ready.c3
-rw-r--r--src/southbridge/via/common/via_early_smbus.h4
7 files changed, 17 insertions, 4 deletions
diff --git a/src/southbridge/via/common/early_smbus_delay.c b/src/southbridge/via/common/early_smbus_delay.c
index 0c0411262a..c75152c3a7 100644
--- a/src/southbridge/via/common/early_smbus_delay.c
+++ b/src/southbridge/via/common/early_smbus_delay.c
@@ -14,7 +14,8 @@
* GNU General Public License for more details.
*/
-#include "via_early_smbus.h"
+#include <arch/io.h>
+#include <device/early_smbus.h>
/**
* \brief Brief delay for SMBus transactions
diff --git a/src/southbridge/via/common/early_smbus_is_busy.c b/src/southbridge/via/common/early_smbus_is_busy.c
index f719cb920d..8321a55bd5 100644
--- a/src/southbridge/via/common/early_smbus_is_busy.c
+++ b/src/southbridge/via/common/early_smbus_is_busy.c
@@ -14,6 +14,9 @@
* GNU General Public License for more details.
*/
+#include <arch/io.h>
+#include <device/early_smbus.h>
+
#include "via_early_smbus.h"
/**
diff --git a/src/southbridge/via/common/early_smbus_print_error.c b/src/southbridge/via/common/early_smbus_print_error.c
index 8a59193a78..cf65b2ec59 100644
--- a/src/southbridge/via/common/early_smbus_print_error.c
+++ b/src/southbridge/via/common/early_smbus_print_error.c
@@ -14,6 +14,8 @@
* GNU General Public License for more details.
*/
+#include <device/early_smbus.h>
+
#include "via_early_smbus.h"
/**
diff --git a/src/southbridge/via/common/early_smbus_read_byte.c b/src/southbridge/via/common/early_smbus_read_byte.c
index cc137cb17a..4f6e29e71b 100644
--- a/src/southbridge/via/common/early_smbus_read_byte.c
+++ b/src/southbridge/via/common/early_smbus_read_byte.c
@@ -14,6 +14,9 @@
* GNU General Public License for more details.
*/
+#include <arch/io.h>
+#include <device/early_smbus.h>
+
#include "via_early_smbus.h"
/**
diff --git a/src/southbridge/via/common/early_smbus_reset.c b/src/southbridge/via/common/early_smbus_reset.c
index 6145ab8492..44975408cb 100644
--- a/src/southbridge/via/common/early_smbus_reset.c
+++ b/src/southbridge/via/common/early_smbus_reset.c
@@ -14,6 +14,9 @@
* GNU General Public License for more details.
*/
+#include <arch/io.h>
+#include <device/early_smbus.h>
+
#include "via_early_smbus.h"
/**
diff --git a/src/southbridge/via/common/early_smbus_wait_until_ready.c b/src/southbridge/via/common/early_smbus_wait_until_ready.c
index 879bc23dd3..6b189362ec 100644
--- a/src/southbridge/via/common/early_smbus_wait_until_ready.c
+++ b/src/southbridge/via/common/early_smbus_wait_until_ready.c
@@ -14,6 +14,9 @@
* GNU General Public License for more details.
*/
+#include <arch/io.h>
+#include <device/early_smbus.h>
+
#include "via_early_smbus.h"
/**
diff --git a/src/southbridge/via/common/via_early_smbus.h b/src/southbridge/via/common/via_early_smbus.h
index 5f66822b88..1dce9b6049 100644
--- a/src/southbridge/via/common/via_early_smbus.h
+++ b/src/southbridge/via/common/via_early_smbus.h
@@ -35,6 +35,7 @@
/**
* \brief SMBus IO ports in relation to the base IO port
*/
+
#define SMBHSTSTAT(base) ((u16)base + 0x0)
#define SMBSLVSTAT(base) ((u16)base + 0x1)
#define SMBHSTCTL(base) ((u16)base + 0x2)
@@ -48,6 +49,3 @@
#define SMBSLVDATA (base) ((u16)base + 0xa)
#define SMBUS_TIMEOUT (100*1000*10)
-
-#include <device/early_smbus.h>
-#include <arch/io.h>