From 9330b25b6fe833b431d7837ad3b43ac8f68af216 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 13 Mar 2019 09:55:00 +0100 Subject: sb/via/common: Fix indirect includes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id6565abd15d6904effbf55e5d1ea8664ef338c83 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/31870 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/southbridge/via/common/early_smbus_delay.c | 3 ++- src/southbridge/via/common/early_smbus_is_busy.c | 3 +++ src/southbridge/via/common/early_smbus_print_error.c | 2 ++ src/southbridge/via/common/early_smbus_read_byte.c | 3 +++ src/southbridge/via/common/early_smbus_reset.c | 3 +++ src/southbridge/via/common/early_smbus_wait_until_ready.c | 3 +++ src/southbridge/via/common/via_early_smbus.h | 4 +--- 7 files changed, 17 insertions(+), 4 deletions(-) (limited to 'src/southbridge') 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 +#include /** * \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 +#include + #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 + #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 +#include + #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 +#include + #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 +#include + #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 -#include -- cgit v1.2.3