summaryrefslogtreecommitdiff
path: root/src/southbridge/via
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/via')
-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>