summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/riscv/include/arch/pmp.h2
-rw-r--r--src/cpu/intel/model_206ax/model_206ax.h2
-rw-r--r--src/include/cpu/amd/multicore.h2
-rw-r--r--src/include/pc80/keyboard.h2
-rw-r--r--src/mainboard/google/rambi/variants/banjo/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/candy/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/clapper/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/enguarde/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/glimmer/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/gnawty/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/heli/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/kip/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/ninja/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/orco/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/quawks/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/rambi/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/squawks/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/sumo/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/swanky/include/variant/variant.h2
-rw-r--r--src/mainboard/google/rambi/variants/winky/include/variant/variant.h2
-rw-r--r--src/mainboard/google/smaug/pmic.h2
-rw-r--r--src/mainboard/intel/harcuvar/spd/spd.h2
-rw-r--r--src/northbridge/amd/amdmct/mct/mct.h3
-rw-r--r--src/northbridge/amd/lx/raminit.h2
-rw-r--r--src/security/tpm/tss/common/tss_common.h2
-rw-r--r--src/soc/intel/apollolake/include/soc/heci.h2
-rw-r--r--src/soc/intel/baytrail/include/soc/iomap.h3
-rw-r--r--src/soc/intel/braswell/include/soc/iomap.h3
-rw-r--r--src/soc/intel/cannonlake/include/soc/lpc.h2
-rw-r--r--src/soc/intel/common/block/include/intelblocks/smm.h2
-rw-r--r--src/soc/intel/common/block/include/intelblocks/vmx.h2
-rw-r--r--src/soc/intel/fsp_baytrail/include/soc/iomap.h3
-rw-r--r--src/soc/intel/icelake/include/soc/lpc.h2
-rw-r--r--src/soc/mediatek/mt8173/include/soc/da9212.h2
-rw-r--r--src/soc/mediatek/mt8173/include/soc/mt6311.h2
-rw-r--r--src/soc/qualcomm/ipq40xx/include/soc/ebi2.h2
-rw-r--r--src/soc/rockchip/rk3399/include/soc/tsadc.h2
-rw-r--r--src/southbridge/amd/sr5650/chip.h2
38 files changed, 77 insertions, 3 deletions
diff --git a/src/arch/riscv/include/arch/pmp.h b/src/arch/riscv/include/arch/pmp.h
index f671c0297b..6cdb997220 100644
--- a/src/arch/riscv/include/arch/pmp.h
+++ b/src/arch/riscv/include/arch/pmp.h
@@ -16,6 +16,8 @@
#ifndef __RISCV_PMP_H__
#define __RISCV_PMP_H__
+#include <stdint.h>
+
/*
* this function needs to be implemented by a specific SoC.
* return number of PMP entries for current hart
diff --git a/src/cpu/intel/model_206ax/model_206ax.h b/src/cpu/intel/model_206ax/model_206ax.h
index f4d469c9cf..2bf9d32e46 100644
--- a/src/cpu/intel/model_206ax/model_206ax.h
+++ b/src/cpu/intel/model_206ax/model_206ax.h
@@ -17,6 +17,8 @@
#ifndef _CPU_INTEL_MODEL_206AX_H
#define _CPU_INTEL_MODEL_206AX_H
+#include <stdint.h>
+
/* SandyBridge/IvyBridge bus clock is fixed at 100MHz */
#define SANDYBRIDGE_BCLK 100
diff --git a/src/include/cpu/amd/multicore.h b/src/include/cpu/amd/multicore.h
index 0ddf866f64..b8680933ae 100644
--- a/src/include/cpu/amd/multicore.h
+++ b/src/include/cpu/amd/multicore.h
@@ -16,6 +16,8 @@
#ifndef CPU_AMD_QUADCORE_H
#define CPU_AMD_QUADCORE_H
+#include <stdint.h>
+
u32 read_nb_cfg_54(void);
struct node_core_id {
diff --git a/src/include/pc80/keyboard.h b/src/include/pc80/keyboard.h
index fa45826af3..d2d66b0695 100644
--- a/src/include/pc80/keyboard.h
+++ b/src/include/pc80/keyboard.h
@@ -1,6 +1,8 @@
#ifndef PC80_KEYBOARD_H
#define PC80_KEYBOARD_H
+#include <stdint.h>
+
#define NO_AUX_DEVICE 0
#define PROBE_AUX_DEVICE 1
diff --git a/src/mainboard/google/rambi/variants/banjo/include/variant/variant.h b/src/mainboard/google/rambi/variants/banjo/include/variant/variant.h
index a0134c04a1..29b707c972 100644
--- a/src/mainboard/google/rambi/variants/banjo/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/banjo/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz
diff --git a/src/mainboard/google/rambi/variants/candy/include/variant/variant.h b/src/mainboard/google/rambi/variants/candy/include/variant/variant.h
index fe4c475825..9dac2b9b5c 100644
--- a/src/mainboard/google/rambi/variants/candy/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/candy/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[3:0] are on GPIO_SSUS[40:37]
* 0b0000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/clapper/include/variant/variant.h b/src/mainboard/google/rambi/variants/clapper/include/variant/variant.h
index 38b156c776..0210b07564 100644
--- a/src/mainboard/google/rambi/variants/clapper/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/clapper/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/enguarde/include/variant/variant.h b/src/mainboard/google/rambi/variants/enguarde/include/variant/variant.h
index 08e75636d2..55c20a2952 100644
--- a/src/mainboard/google/rambi/variants/enguarde/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/enguarde/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/glimmer/include/variant/variant.h b/src/mainboard/google/rambi/variants/glimmer/include/variant/variant.h
index 59d5ee1f6d..28105518a4 100644
--- a/src/mainboard/google/rambi/variants/glimmer/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/glimmer/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b0000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/gnawty/include/variant/variant.h b/src/mainboard/google/rambi/variants/gnawty/include/variant/variant.h
index bd79c982ed..dd76bd31c8 100644
--- a/src/mainboard/google/rambi/variants/gnawty/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/gnawty/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz
diff --git a/src/mainboard/google/rambi/variants/heli/include/variant/variant.h b/src/mainboard/google/rambi/variants/heli/include/variant/variant.h
index d25b9c9f21..a240e40fd4 100644
--- a/src/mainboard/google/rambi/variants/heli/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/heli/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[3:0] are on GPIO_SSUS[40:37]
* RAM_ID Vendor Vendor_PN Freq Size Total_size channel
diff --git a/src/mainboard/google/rambi/variants/kip/include/variant/variant.h b/src/mainboard/google/rambi/variants/kip/include/variant/variant.h
index 7f058d7ccb..06bcbec82e 100644
--- a/src/mainboard/google/rambi/variants/kip/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/kip/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/ninja/include/variant/variant.h b/src/mainboard/google/rambi/variants/ninja/include/variant/variant.h
index 8d2113c063..98f43a0586 100644
--- a/src/mainboard/google/rambi/variants/ninja/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/ninja/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/orco/include/variant/variant.h b/src/mainboard/google/rambi/variants/orco/include/variant/variant.h
index ab8116222a..eeaaf60ca1 100644
--- a/src/mainboard/google/rambi/variants/orco/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/orco/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/quawks/include/variant/variant.h b/src/mainboard/google/rambi/variants/quawks/include/variant/variant.h
index 2b80bf4602..f98beb20c1 100644
--- a/src/mainboard/google/rambi/variants/quawks/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/quawks/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz
diff --git a/src/mainboard/google/rambi/variants/rambi/include/variant/variant.h b/src/mainboard/google/rambi/variants/rambi/include/variant/variant.h
index 44ae0cfb43..8051f1b7af 100644
--- a/src/mainboard/google/rambi/variants/rambi/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/rambi/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/squawks/include/variant/variant.h b/src/mainboard/google/rambi/variants/squawks/include/variant/variant.h
index 2b80bf4602..f98beb20c1 100644
--- a/src/mainboard/google/rambi/variants/squawks/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/squawks/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Elpida EDJ4216EFBG-GNL-F 1600MHz
diff --git a/src/mainboard/google/rambi/variants/sumo/include/variant/variant.h b/src/mainboard/google/rambi/variants/sumo/include/variant/variant.h
index 8d2113c063..98f43a0586 100644
--- a/src/mainboard/google/rambi/variants/sumo/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/sumo/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/rambi/variants/swanky/include/variant/variant.h b/src/mainboard/google/rambi/variants/swanky/include/variant/variant.h
index 483983bc34..0beee1cad6 100644
--- a/src/mainboard/google/rambi/variants/swanky/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/swanky/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 2GiB total - 1 x 2GiB Samsung K4B4G1646Q-HYK0 1600MHz
diff --git a/src/mainboard/google/rambi/variants/winky/include/variant/variant.h b/src/mainboard/google/rambi/variants/winky/include/variant/variant.h
index 6bf556965f..402270fc92 100644
--- a/src/mainboard/google/rambi/variants/winky/include/variant/variant.h
+++ b/src/mainboard/google/rambi/variants/winky/include/variant/variant.h
@@ -14,6 +14,8 @@
#ifndef VARIANT_H
#define VARIANT_H
+#include <stdint.h>
+
/*
* RAM_ID[2:0] are on GPIO_SSUS[39:37]
* 0b000 - 4GiB total - 2 x 2GiB Micron MT41K256M16HA-125:E 1600MHz
diff --git a/src/mainboard/google/smaug/pmic.h b/src/mainboard/google/smaug/pmic.h
index 3567c7862c..e01a556948 100644
--- a/src/mainboard/google/smaug/pmic.h
+++ b/src/mainboard/google/smaug/pmic.h
@@ -17,6 +17,8 @@
#ifndef __MAINBOARD_GOOGLE_FOSTER_PMIC_H__
#define __MAINBOARD_GOOGLE_FOSTER_PMIC_H__
+#include <stdint.h>
+
#define MAX77620_SD0_REG 0x16
#define MAX77620_SD1_REG 0x17
#define MAX77620_SD2_REG 0x18
diff --git a/src/mainboard/intel/harcuvar/spd/spd.h b/src/mainboard/intel/harcuvar/spd/spd.h
index 13692d7433..9c0174f9d2 100644
--- a/src/mainboard/intel/harcuvar/spd/spd.h
+++ b/src/mainboard/intel/harcuvar/spd/spd.h
@@ -18,6 +18,8 @@
#ifndef MAINBOARD_SPD_H
#define MAINBOARD_SPD_H
+#include <stdint.h>
+
#define SPD_LEN 512
#define SPD_DRAM_TYPE 2
diff --git a/src/northbridge/amd/amdmct/mct/mct.h b/src/northbridge/amd/amdmct/mct/mct.h
index 384768849b..d13c42cdb5 100644
--- a/src/northbridge/amd/amdmct/mct/mct.h
+++ b/src/northbridge/amd/amdmct/mct/mct.h
@@ -16,6 +16,9 @@
#ifndef MCT_H
#define MCT_H
+
+#include <stdint.h>
+
/*===========================================================================
CPU - K8/FAM10
===========================================================================*/
diff --git a/src/northbridge/amd/lx/raminit.h b/src/northbridge/amd/lx/raminit.h
index d1068627b7..a1c0fcde20 100644
--- a/src/northbridge/amd/lx/raminit.h
+++ b/src/northbridge/amd/lx/raminit.h
@@ -17,6 +17,8 @@
#ifndef RAMINIT_H
#define RAMINIT_H
+#include <stdint.h>
+
#define DIMM_SOCKETS 2
struct mem_controller {
diff --git a/src/security/tpm/tss/common/tss_common.h b/src/security/tpm/tss/common/tss_common.h
index 0cb8d86231..47c9c29e05 100644
--- a/src/security/tpm/tss/common/tss_common.h
+++ b/src/security/tpm/tss/common/tss_common.h
@@ -17,6 +17,8 @@
#ifndef TCG_TSS_COMMON_H_
#define TCG_TSS_COMMON_H_
+#include <stdint.h>
+
#define TPM_PCR_MINIMUM_DIGEST_SIZE 20
#define TPM_SUCCESS ((uint32_t)0x00000000)
diff --git a/src/soc/intel/apollolake/include/soc/heci.h b/src/soc/intel/apollolake/include/soc/heci.h
index 1151321445..ac28b14cee 100644
--- a/src/soc/intel/apollolake/include/soc/heci.h
+++ b/src/soc/intel/apollolake/include/soc/heci.h
@@ -17,6 +17,8 @@
#ifndef _SOC_APOLLOLAKE_HECI_H_
#define _SOC_APOLLOLAKE_HECI_H_
+#include <stdint.h>
+
enum sec_status {
SEC_STATE_RESET = 0,
SEC_STATE_INIT,
diff --git a/src/soc/intel/baytrail/include/soc/iomap.h b/src/soc/intel/baytrail/include/soc/iomap.h
index bb6b4bbdea..11c01e311d 100644
--- a/src/soc/intel/baytrail/include/soc/iomap.h
+++ b/src/soc/intel/baytrail/include/soc/iomap.h
@@ -16,7 +16,6 @@
#ifndef _BAYTRAIL_IOMAP_H_
#define _BAYTRAIL_IOMAP_H_
-
/*
* Memory Mapped IO bases.
*/
@@ -79,6 +78,8 @@
#define SMBUS_BASE_ADDRESS 0xefa0
#ifndef __ACPI__
+#include <stdint.h>
+
/* Read Top of Low Memory (BMBOUND) */
uint32_t nc_read_top_of_low_memory(void);
#endif
diff --git a/src/soc/intel/braswell/include/soc/iomap.h b/src/soc/intel/braswell/include/soc/iomap.h
index a07490280e..c61983b446 100644
--- a/src/soc/intel/braswell/include/soc/iomap.h
+++ b/src/soc/intel/braswell/include/soc/iomap.h
@@ -17,7 +17,6 @@
#ifndef _SOC_IOMAP_H_
#define _SOC_IOMAP_H_
-
/*
* Memory Mapped IO bases.
*/
@@ -81,6 +80,8 @@
#define SMBUS_BASE_ADDRESS 0xefa0
#ifndef __ACPI__
+#include <stdint.h>
+
/* Read Top of Low Memory (BMBOUND) */
uint32_t nc_read_top_of_low_memory(void);
#endif
diff --git a/src/soc/intel/cannonlake/include/soc/lpc.h b/src/soc/intel/cannonlake/include/soc/lpc.h
index a4e42bddf3..ea72675dbc 100644
--- a/src/soc/intel/cannonlake/include/soc/lpc.h
+++ b/src/soc/intel/cannonlake/include/soc/lpc.h
@@ -17,6 +17,8 @@
#ifndef _SOC_CANNONLAKE_LPC_H_
#define _SOC_CANNONLAKE_LPC_H_
+#include <stdint.h>
+
/* PCI Configuration Space (D31:F0): LPC */
#define SCI_IRQ_SEL (7 << 0)
#define SCIS_IRQ9 0
diff --git a/src/soc/intel/common/block/include/intelblocks/smm.h b/src/soc/intel/common/block/include/intelblocks/smm.h
index f560f24e2b..c04ec46800 100644
--- a/src/soc/intel/common/block/include/intelblocks/smm.h
+++ b/src/soc/intel/common/block/include/intelblocks/smm.h
@@ -17,6 +17,8 @@
#ifndef SOC_INTEL_COMMON_BLOCK_SMM_H
#define SOC_INTEL_COMMON_BLOCK_SMM_H
+#include <stdint.h>
+
/*
* This common code block relies on each specific SOC defining the macro
* ENABLE_SMI_PARAMS for the values needed for SMI enabling on the
diff --git a/src/soc/intel/common/block/include/intelblocks/vmx.h b/src/soc/intel/common/block/include/intelblocks/vmx.h
index 7f65b599b4..b93ceeb8c1 100644
--- a/src/soc/intel/common/block/include/intelblocks/vmx.h
+++ b/src/soc/intel/common/block/include/intelblocks/vmx.h
@@ -14,6 +14,8 @@
#ifndef SOC_INTEL_COMMON_BLOCK_VMX_H
#define SOC_INTEL_COMMON_BLOCK_VMX_H
+#include <stdint.h>
+
struct vmx_param {
uint8_t enable;
};
diff --git a/src/soc/intel/fsp_baytrail/include/soc/iomap.h b/src/soc/intel/fsp_baytrail/include/soc/iomap.h
index bb6b4bbdea..11c01e311d 100644
--- a/src/soc/intel/fsp_baytrail/include/soc/iomap.h
+++ b/src/soc/intel/fsp_baytrail/include/soc/iomap.h
@@ -16,7 +16,6 @@
#ifndef _BAYTRAIL_IOMAP_H_
#define _BAYTRAIL_IOMAP_H_
-
/*
* Memory Mapped IO bases.
*/
@@ -79,6 +78,8 @@
#define SMBUS_BASE_ADDRESS 0xefa0
#ifndef __ACPI__
+#include <stdint.h>
+
/* Read Top of Low Memory (BMBOUND) */
uint32_t nc_read_top_of_low_memory(void);
#endif
diff --git a/src/soc/intel/icelake/include/soc/lpc.h b/src/soc/intel/icelake/include/soc/lpc.h
index df781be54d..dfcfa353c8 100644
--- a/src/soc/intel/icelake/include/soc/lpc.h
+++ b/src/soc/intel/icelake/include/soc/lpc.h
@@ -16,6 +16,8 @@
#ifndef _SOC_ICELAKE_LPC_H_
#define _SOC_ICELAKE_LPC_H_
+#include <stdint.h>
+
/* PCI Configuration Space (D31:F0): LPC */
#define SCI_IRQ_SEL (7 << 0)
#define SCIS_IRQ9 0
diff --git a/src/soc/mediatek/mt8173/include/soc/da9212.h b/src/soc/mediatek/mt8173/include/soc/da9212.h
index 388958d92b..118ba85667 100644
--- a/src/soc/mediatek/mt8173/include/soc/da9212.h
+++ b/src/soc/mediatek/mt8173/include/soc/da9212.h
@@ -16,6 +16,8 @@
#ifndef __SOC_DA9212_H_
#define __SOC_DA9212_H_
+#include <stdint.h>
+
void da9212_probe(uint8_t i2c_num);
enum {
diff --git a/src/soc/mediatek/mt8173/include/soc/mt6311.h b/src/soc/mediatek/mt8173/include/soc/mt6311.h
index 3b0b79a8c7..29063d6fe1 100644
--- a/src/soc/mediatek/mt8173/include/soc/mt6311.h
+++ b/src/soc/mediatek/mt8173/include/soc/mt6311.h
@@ -16,6 +16,8 @@
#ifndef __SOC_MEDIATEK_MT8173_MT6311_H__
#define __SOC_MEDIATEK_MT8173_MT6311_H__
+#include <stdint.h>
+
void mt6311_probe(uint8_t i2c_num);
enum {
diff --git a/src/soc/qualcomm/ipq40xx/include/soc/ebi2.h b/src/soc/qualcomm/ipq40xx/include/soc/ebi2.h
index 1cc04aefad..83030e4df9 100644
--- a/src/soc/qualcomm/ipq40xx/include/soc/ebi2.h
+++ b/src/soc/qualcomm/ipq40xx/include/soc/ebi2.h
@@ -31,6 +31,8 @@
#ifndef __SOC_QUALCOMM_IPQ40XX_EBI2_H_
#define __SOC_QUALCOMM_IPQ40XX_EBI2_H_
+#include <stdint.h>
+
#define EBI2CR_BASE (0x1A600000)
struct ebi2cr_regs {
diff --git a/src/soc/rockchip/rk3399/include/soc/tsadc.h b/src/soc/rockchip/rk3399/include/soc/tsadc.h
index b1f617df75..082a2bc905 100644
--- a/src/soc/rockchip/rk3399/include/soc/tsadc.h
+++ b/src/soc/rockchip/rk3399/include/soc/tsadc.h
@@ -16,6 +16,8 @@
#ifndef __SOC_ROCKCHIP_RK3399_TSADC_H__
#define __SOC_ROCKCHIP_RK3399_TSADC_H__
+#include <stdint.h>
+
enum {
TSHUT_POL_HIGH = 1 << 8,
TSHUT_POL_LOW = 0 << 8
diff --git a/src/southbridge/amd/sr5650/chip.h b/src/southbridge/amd/sr5650/chip.h
index 13e24785ad..082300edcf 100644
--- a/src/southbridge/amd/sr5650/chip.h
+++ b/src/southbridge/amd/sr5650/chip.h
@@ -17,6 +17,8 @@
#ifndef SR5650_CHIP_H
#define SR5650_CHIP_H
+#include <stdint.h>
+
/* Member variables are defined in Config.lb. */
struct southbridge_amd_sr5650_config
{