diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-03-21 11:10:03 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-04-06 16:09:12 +0000 |
commit | bf0970e762a6611cef06af761bc2dec068d439bb (patch) | |
tree | 44d4854b7027794bc5a76b44a4e8fd07935cd60c /src/drivers/xgi | |
parent | 161eafb0fb9563decbb953d5dccac4762b770e0c (diff) | |
download | coreboot-bf0970e762a6611cef06af761bc2dec068d439bb.tar.xz |
src: Use include <delay.h> when appropriate
Change-Id: I23bc0191ca8fcd88364e5c08be7c90195019e399
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32012
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: David Guckian
Diffstat (limited to 'src/drivers/xgi')
-rw-r--r-- | src/drivers/xgi/common/vb_init.c | 4 | ||||
-rw-r--r-- | src/drivers/xgi/common/vb_setmode.c | 4 | ||||
-rw-r--r-- | src/drivers/xgi/common/xgi_coreboot.c | 6 | ||||
-rw-r--r-- | src/drivers/xgi/common/xgi_coreboot.h | 2 | ||||
-rw-r--r-- | src/drivers/xgi/z9s/z9s.c | 3 |
5 files changed, 7 insertions, 12 deletions
diff --git a/src/drivers/xgi/common/vb_init.c b/src/drivers/xgi/common/vb_init.c index 0d25e254e2..a20c0683d4 100644 --- a/src/drivers/xgi/common/vb_init.c +++ b/src/drivers/xgi/common/vb_init.c @@ -17,14 +17,16 @@ * GNU General Public License for more details. */ +#include <delay.h> + #include "xgi_coreboot.h" #include "vstruct.h" - #include "XGIfb.h" #include "vb_def.h" #include "vb_util.h" #include "vb_setmode.h" #include "vb_init.h" + static const unsigned short XGINew_DDRDRAM_TYPE340[4][2] = { { 16, 0x45}, { 8, 0x35}, diff --git a/src/drivers/xgi/common/vb_setmode.c b/src/drivers/xgi/common/vb_setmode.c index e80bc35cc4..162d00cfcf 100644 --- a/src/drivers/xgi/common/vb_setmode.c +++ b/src/drivers/xgi/common/vb_setmode.c @@ -14,11 +14,11 @@ * GNU General Public License for more details. */ +#include <delay.h> + #include "xgi_coreboot.h" #include "vstruct.h" - #include "XGIfb.h" - #include "vb_def.h" #include "vb_init.h" #include "vb_util.h" diff --git a/src/drivers/xgi/common/xgi_coreboot.c b/src/drivers/xgi/common/xgi_coreboot.c index 745baa2d88..5aba472eb7 100644 --- a/src/drivers/xgi/common/xgi_coreboot.c +++ b/src/drivers/xgi/common/xgi_coreboot.c @@ -15,27 +15,23 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include <delay.h> + #include <stdlib.h> #include <vbe.h> - #include <console/console.h> #include <device/device.h> #include <device/pci.h> #include <device/pci_ids.h> #include <device/pci_ops.h> - #include <pc80/vga.h> #include "xgi_coreboot.h" #include "vstruct.h" - #include "XGIfb.h" #include "XGI_main.h" #include "vb_init.h" #include "vb_util.h" #include "vb_setmode.h" - #include "XGI_main.c" static int xgi_vbe_valid; diff --git a/src/drivers/xgi/common/xgi_coreboot.h b/src/drivers/xgi/common/xgi_coreboot.h index dc8f49eb54..41952d6925 100644 --- a/src/drivers/xgi/common/xgi_coreboot.h +++ b/src/drivers/xgi/common/xgi_coreboot.h @@ -19,12 +19,10 @@ #ifndef _XGI_COREBOOT_ #define _XGI_COREBOOT_ -#include <delay.h> #include <stdlib.h> #include <stdint.h> #include <arch/io.h> #include <device/mmio.h> - #include <console/console.h> #include <device/device.h> #include <device/pci.h> diff --git a/src/drivers/xgi/z9s/z9s.c b/src/drivers/xgi/z9s/z9s.c index 3b468114c9..1925514043 100644 --- a/src/drivers/xgi/z9s/z9s.c +++ b/src/drivers/xgi/z9s/z9s.c @@ -12,9 +12,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include <delay.h> -#include <stdlib.h> +#include <stdlib.h> #include <console/console.h> #include <device/device.h> #include <device/pci.h> |