summaryrefslogtreecommitdiff
path: root/src/drivers/intel
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-05-15 21:05:37 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-05-29 20:27:52 +0000
commitbd1683da29d5688f97fcc43bef3e0df74e4196f9 (patch)
tree0f124f816bcfc3c6a9fe6459a0c5df5997eddd52 /src/drivers/intel
parentb12ece98b09dd88634d93bcb41ca5c4cb9d86364 (diff)
downloadcoreboot-bd1683da29d5688f97fcc43bef3e0df74e4196f9.tar.xz
src/{device,drivers}: Add missing 'include <types.h>'
<types.h> is supposed to provide <stdint.h> and <stddef.h>. So when <types.h> is included, <stdint.h> and/or <stddef.h> is removed. Change-Id: I3395715f9e2b03175089186ab2e57d9e508fc87c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32806 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lijian Zhao <lijian.zhao@intel.com>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r--src/drivers/intel/fsp2_0/graphics.c1
-rw-r--r--src/drivers/intel/fsp2_0/include/fsp/util.h1
-rw-r--r--src/drivers/intel/fsp2_0/memory_init.c1
-rw-r--r--src/drivers/intel/fsp2_0/silicon_init.c1
-rw-r--r--src/drivers/intel/fsp2_0/temp_ram_exit.c1
-rw-r--r--src/drivers/intel/fsp2_0/util.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/intel/fsp2_0/graphics.c b/src/drivers/intel/fsp2_0/graphics.c
index e0c63d2570..55dc6dfddc 100644
--- a/src/drivers/intel/fsp2_0/graphics.c
+++ b/src/drivers/intel/fsp2_0/graphics.c
@@ -13,6 +13,7 @@
#include <console/console.h>
#include <fsp/util.h>
#include <soc/intel/common/vbt.h>
+#include <types.h>
enum pixel_format {
pixel_rgbx_8bpc = 0,
diff --git a/src/drivers/intel/fsp2_0/include/fsp/util.h b/src/drivers/intel/fsp2_0/include/fsp/util.h
index 231162ed17..ef7ecd163f 100644
--- a/src/drivers/intel/fsp2_0/include/fsp/util.h
+++ b/src/drivers/intel/fsp2_0/include/fsp/util.h
@@ -19,6 +19,7 @@
#include <fsp/api.h>
#include <fsp/info_header.h>
#include <memrange.h>
+#include <types.h>
struct hob_header {
uint16_t type;
diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c
index 60e3310a4d..f248a58c77 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -32,6 +32,7 @@
#include <security/tpm/tspi.h>
#include <vb2_api.h>
#include <fsp/memory_init.h>
+#include <types.h>
/* TPM MRC hash functionality depends on vboot starting before memory init. */
_Static_assert(!CONFIG(FSP2_0_USES_TPM_MRC_HASH) ||
diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c
index 302bc0f3ad..e72e4ac163 100644
--- a/src/drivers/intel/fsp2_0/silicon_init.c
+++ b/src/drivers/intel/fsp2_0/silicon_init.c
@@ -22,6 +22,7 @@
#include <stage_cache.h>
#include <string.h>
#include <timestamp.h>
+#include <types.h>
struct fsp_header fsps_hdr;
diff --git a/src/drivers/intel/fsp2_0/temp_ram_exit.c b/src/drivers/intel/fsp2_0/temp_ram_exit.c
index ced3584fd0..075e923f84 100644
--- a/src/drivers/intel/fsp2_0/temp_ram_exit.c
+++ b/src/drivers/intel/fsp2_0/temp_ram_exit.c
@@ -15,6 +15,7 @@
#include <fsp/util.h>
#include <memrange.h>
#include <cbfs.h>
+#include <types.h>
void fsp_temp_ram_exit(void)
{
diff --git a/src/drivers/intel/fsp2_0/util.c b/src/drivers/intel/fsp2_0/util.c
index 19b8127ac5..f670e6facd 100644
--- a/src/drivers/intel/fsp2_0/util.c
+++ b/src/drivers/intel/fsp2_0/util.c
@@ -16,6 +16,7 @@
#include <console/console.h>
#include <fsp/util.h>
#include <string.h>
+#include <types.h>
static bool looks_like_fsp_header(const uint8_t *raw_hdr)
{