HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42008 )
Change subject: src: Add missing <types.h> ......................................................................
src: Add missing <types.h>
Remove remining unused <stddef> and replace <stdint.h> by <types.h> when <stddef.h> is missing.
still missing <stddef>: diff <(git grep -l '#include <(types.h>|<stddef.h>)' -- src/) <(git grep -l 'size_t|wchar_t|wint_t|DEVTREE_EARLY|DEVTREE_CONST|MAYBE_STATIC_NONZERO|zeroptr' -- src/) |grep -v vendorcode |grep '>'
Change-Id: I82993b6955b615fdbe019ee4c470e19cbdb72943 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/arch/arm/armv7/cache.c M src/arch/arm64/armv8/cache.c M src/arch/arm64/armv8/mmu.c M src/arch/riscv/include/vm.h M src/arch/x86/exception.c M src/arch/x86/include/arch/bert_storage.h M src/arch/x86/include/arch/ebda.h M src/arch/x86/include/smm.h M src/arch/x86/memset.c M src/console/vtxprintf.c M src/cpu/amd/pi/00730F01/microcode_fam16h.c M src/device/i2c_bus.c M src/drivers/amd/agesa/state_machine.c M src/drivers/aspeed/common/aspeed_coreboot.h M src/drivers/elog/elog.c M src/drivers/i2c/designware/dw_i2c.h M src/drivers/i2c/tpm/tis.c M src/drivers/i2c/tpm/tpm.h M src/drivers/intel/fsp2_0/hand_off_block.c M src/drivers/intel/fsp2_0/include/fsp/api.h M src/drivers/intel/fsp2_0/include/fsp/soc_binding.h M src/drivers/secunet/dmi/smbios.c M src/drivers/spi/boot_device_rw_nommap.c M src/drivers/spi/cbfs_spi.c M src/drivers/spi/spi_sdcard.c M src/ec/google/chromeec/crosec_proto.c M src/ec/google/chromeec/ec.c M src/ec/google/chromeec/ec_i2c.c M src/ec/google/chromeec/ec_lpc.c M src/ec/google/chromeec/vstore.c M src/ec/google/wilco/chip.c M src/ec/google/wilco/commands.c M src/ec/kontron/kempld/kempld_i2c.c M src/include/acpi/acpi_device.h M src/include/acpi/acpigen.h M src/include/crc_byte.h M src/include/device/i2c_bus.h M src/include/device/pci_rom.h M src/include/device/smbus_host.h M src/include/device/soundwire.h M src/include/device_tree.h M src/include/dimm_info_util.h M src/include/region_file.h M src/lib/fit.c M src/lib/gcov-glue.c M src/lib/reg_script.c M src/lib/rmodule.c M src/lib/selfboot.c M src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h M src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h M src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h M src/mainboard/google/link/early_init.c M src/mainboard/google/octopus/mainboard.c M src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h M src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h M src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h M src/mainboard/google/reef/variants/coral/mainboard.c M src/mainboard/google/slippy/variants/leon/romstage.c M src/mainboard/google/slippy/variants/peppy/romstage.c M src/mainboard/google/slippy/variants/wolf/romstage.c M src/mainboard/intel/cannonlake_rvp/variants/baseboard/include/baseboard/variants.h M src/mainboard/intel/coffeelake_rvp/variants/baseboard/include/baseboard/variants.h M src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/variants.h M src/mainboard/intel/icelake_rvp/board_id.c M src/mainboard/intel/icelake_rvp/variants/baseboard/include/baseboard/variants.h M src/mainboard/intel/jasperlake_rvp/board_id.c M src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/variants.h M src/mainboard/intel/kunimitsu/spd/spd_util.c M src/mainboard/intel/tglrvp/board_id.c M src/mainboard/intel/tglrvp/variants/baseboard/include/baseboard/variants.h M src/mainboard/lenovo/s230u/early_init.c M src/mainboard/lenovo/x1_carbon_gen1/early_init.c M src/mainboard/samsung/lumpy/early_init.c M src/mainboard/scaleway/tagada/bmcinfo.c M src/mainboard/supermicro/x9scl/early_init.c M src/northbridge/amd/agesa/agesa_helper.h M src/northbridge/intel/gm45/memmap.c M src/northbridge/intel/haswell/northbridge.c M src/northbridge/intel/i945/memmap.c M src/northbridge/intel/pineview/memmap.c M src/northbridge/intel/x4x/memmap.c M src/security/vboot/vboot_common.h M src/soc/amd/common/block/include/amdblocks/amd_pci_util.h M src/soc/amd/picasso/chip.h M src/soc/amd/picasso/gpio.c M src/soc/amd/picasso/memmap.c M src/soc/amd/stoneyridge/gpio.c M src/soc/amd/stoneyridge/memmap.c M src/soc/amd/stoneyridge/northbridge.c M src/soc/cavium/cn81xx/include/soc/cpu.h M src/soc/cavium/cn81xx/timer.c M src/soc/cavium/cn81xx/uart.c M src/soc/intel/apollolake/cse.c M src/soc/intel/broadwell/memmap.c M src/soc/intel/cannonlake/elog.c M src/soc/intel/cannonlake/include/soc/gpio_defs.h M src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h M src/soc/intel/common/block/include/intelblocks/acpi.h M src/soc/intel/common/block/include/intelblocks/lpss.h M src/soc/intel/common/block/include/intelblocks/pmc.h M src/soc/intel/common/block/include/intelblocks/pmclib.h M src/soc/intel/common/block/include/intelblocks/uart.h M src/soc/intel/common/block/pmc/pmclib.c M src/soc/intel/common/mma.h M src/soc/intel/common/smbios.h M src/soc/intel/denverton_ns/gpio_dnv.c M src/soc/intel/denverton_ns/soc_util.c M src/soc/intel/icelake/include/soc/gpio_defs.h M src/soc/intel/jasperlake/include/soc/gpio_defs.h M src/soc/intel/skylake/elog.c M src/soc/intel/skylake/include/soc/gpio_defs.h M src/soc/intel/tigerlake/include/soc/gpio_defs.h M src/soc/intel/xeon_sp/include/soc/lewisburg_pch_gpio_defs.h M src/soc/mediatek/common/include/soc/gpio_common.h M src/soc/mediatek/common/include/soc/usb_common.h M src/soc/mediatek/mt8173/include/soc/addressmap.h M src/soc/mediatek/mt8173/include/soc/spm.h M src/soc/nvidia/tegra124/include/soc/addressmap.h M src/soc/nvidia/tegra124/include/soc/emc.h M src/soc/nvidia/tegra124/include/soc/mc.h M src/soc/nvidia/tegra124/include/soc/sdram_param.h M src/soc/nvidia/tegra124/include/soc/spi.h M src/soc/nvidia/tegra210/include/soc/clk_rst.h M src/soc/nvidia/tegra210/include/soc/emc.h M src/soc/nvidia/tegra210/include/soc/funitcfg.h M src/soc/nvidia/tegra210/include/soc/mc.h M src/soc/nvidia/tegra210/include/soc/padconfig.h M src/soc/nvidia/tegra210/include/soc/sdram_param.h M src/soc/nvidia/tegra210/include/soc/spi.h M src/soc/rockchip/common/include/soc/spi.h M src/soc/sifive/fu540/clock.c M src/southbridge/amd/agesa/hudson/spi.c M src/southbridge/intel/common/spi.c M src/superio/smsc/sch5545/sch5545_emi.h 134 files changed, 105 insertions(+), 134 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/42008/1
diff --git a/src/arch/arm/armv7/cache.c b/src/arch/arm/armv7/cache.c index 1c46e04..ae283f0 100644 --- a/src/arch/arm/armv7/cache.c +++ b/src/arch/arm/armv7/cache.c @@ -5,7 +5,7 @@ * Reference: ARM Architecture Reference Manual, ARMv7-A and ARMv7-R edition */
-#include <stdint.h> +#include <types.h>
#include <arch/cache.h> #include <program_loading.h> diff --git a/src/arch/arm64/armv8/cache.c b/src/arch/arm64/armv8/cache.c index ae0729e..e30e878 100644 --- a/src/arch/arm64/armv8/cache.c +++ b/src/arch/arm64/armv8/cache.c @@ -5,7 +5,7 @@ * Reference: ARM Architecture Reference Manual, ARMv8-A edition */
-#include <stdint.h> +#include <types.h>
#include <arch/cache.h> #include <arch/lib_helpers.h> diff --git a/src/arch/arm64/armv8/mmu.c b/src/arch/arm64/armv8/mmu.c index 72e5cca..2f3bfef 100644 --- a/src/arch/arm64/armv8/mmu.c +++ b/src/arch/arm64/armv8/mmu.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause */
#include <assert.h> -#include <stdint.h> +#include <types.h> #include <string.h> #include <symbols.h>
diff --git a/src/arch/riscv/include/vm.h b/src/arch/riscv/include/vm.h index 5501a0c..012bc4d 100644 --- a/src/arch/riscv/include/vm.h +++ b/src/arch/riscv/include/vm.h @@ -4,7 +4,7 @@ #define _VM_H
#include <string.h> -#include <stdint.h> +#include <types.h> #include <arch/encoding.h>
#define EXTRACT_FIELD(val, which) (((val) & (which)) / ((which) & ~((which)-1))) diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c index 46ba370..0489665 100644 --- a/src/arch/x86/exception.c +++ b/src/arch/x86/exception.c @@ -7,7 +7,7 @@ #include <console/streams.h> #include <cpu/x86/cr.h> #include <cpu/x86/lapic.h> -#include <stdint.h> +#include <types.h> #include <string.h>
#if CONFIG(GDB_STUB) diff --git a/src/arch/x86/include/arch/bert_storage.h b/src/arch/x86/include/arch/bert_storage.h index c6a2f30..e055a83 100644 --- a/src/arch/x86/include/arch/bert_storage.h +++ b/src/arch/x86/include/arch/bert_storage.h @@ -3,7 +3,7 @@ #ifndef _BERT_STORAGE_H_ #define _BERT_STORAGE_H_
-#include <stdint.h> +#include <types.h> #include <acpi/acpi.h>
/* Items in the BERT region diff --git a/src/arch/x86/include/arch/ebda.h b/src/arch/x86/include/arch/ebda.h index 71426b1..766db22 100644 --- a/src/arch/x86/include/arch/ebda.h +++ b/src/arch/x86/include/arch/ebda.h @@ -4,7 +4,6 @@ #define __ARCH_EBDA_H
#include <stdint.h> -#include <stddef.h>
#define X86_BDA_SIZE 0x200 #define X86_BDA_BASE ((void *)0x400) diff --git a/src/arch/x86/include/smm.h b/src/arch/x86/include/smm.h index 739b7158..e6db9dc 100644 --- a/src/arch/x86/include/smm.h +++ b/src/arch/x86/include/smm.h @@ -1,6 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stddef.h> #include <stdint.h> #include <cpu/x86/smm.h>
diff --git a/src/arch/x86/memset.c b/src/arch/x86/memset.c index 1796342..0cfa249 100644 --- a/src/arch/x86/memset.c +++ b/src/arch/x86/memset.c @@ -3,7 +3,7 @@ /* From glibc-2.14, sysdeps/i386/memset.c */
#include <string.h> -#include <stdint.h> +#include <types.h>
typedef uint32_t op_t;
diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c index 273bc7e..33e2f14 100644 --- a/src/console/vtxprintf.c +++ b/src/console/vtxprintf.c @@ -7,7 +7,7 @@ #include <console/vtxprintf.h> #include <ctype.h> #include <string.h> -#include <stdint.h> +#include <types.h>
#define call_tx(x) tx_byte(x, data)
diff --git a/src/cpu/amd/pi/00730F01/microcode_fam16h.c b/src/cpu/amd/pi/00730F01/microcode_fam16h.c index 496f2ec..29af710 100644 --- a/src/cpu/amd/pi/00730F01/microcode_fam16h.c +++ b/src/cpu/amd/pi/00730F01/microcode_fam16h.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <console/console.h> #include <cpu/x86/msr.h> #include <cpu/amd/microcode.h> diff --git a/src/device/i2c_bus.c b/src/device/i2c_bus.c index a65cdad..443c57b 100644 --- a/src/device/i2c_bus.c +++ b/src/device/i2c_bus.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <console/console.h> #include <device/smbus.h> #include <device/i2c_bus.h> diff --git a/src/drivers/amd/agesa/state_machine.c b/src/drivers/amd/agesa/state_machine.c index 6ae7d99..889ddf5 100644 --- a/src/drivers/amd/agesa/state_machine.c +++ b/src/drivers/amd/agesa/state_machine.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <acpi/acpi.h> #include <bootstate.h> diff --git a/src/drivers/aspeed/common/aspeed_coreboot.h b/src/drivers/aspeed/common/aspeed_coreboot.h index 3f740b2..22a807c 100644 --- a/src/drivers/aspeed/common/aspeed_coreboot.h +++ b/src/drivers/aspeed/common/aspeed_coreboot.h @@ -5,7 +5,7 @@
#include <delay.h> #include <stdlib.h> -#include <stdint.h> +#include <types.h> #include <string.h> #include <arch/io.h> #include <device/mmio.h> diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 5e3409b..27573ed 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -14,7 +14,7 @@ #include <post.h> #include <rtc.h> #include <smbios.h> -#include <stdint.h> +#include <types.h> #include <string.h> #include <elog.h> #include "elog_internal.h" diff --git a/src/drivers/i2c/designware/dw_i2c.h b/src/drivers/i2c/designware/dw_i2c.h index 45f305e..5393d4e 100644 --- a/src/drivers/i2c/designware/dw_i2c.h +++ b/src/drivers/i2c/designware/dw_i2c.h @@ -5,7 +5,7 @@
#include <device/device.h> #include <device/i2c.h> -#include <stdint.h> +#include <types.h>
#if CONFIG(DRIVERS_I2C_DESIGNWARE_DEBUG) #define DW_I2C_DEBUG BIOS_DEBUG diff --git a/src/drivers/i2c/tpm/tis.c b/src/drivers/i2c/tpm/tis.c index 217d8c6..9905331 100644 --- a/src/drivers/i2c/tpm/tis.c +++ b/src/drivers/i2c/tpm/tis.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <assert.h> #include <commonlib/endian.h> diff --git a/src/drivers/i2c/tpm/tpm.h b/src/drivers/i2c/tpm/tpm.h index eb4fef1..da2271f 100644 --- a/src/drivers/i2c/tpm/tpm.h +++ b/src/drivers/i2c/tpm/tpm.h @@ -12,7 +12,7 @@ #ifndef __DRIVERS_TPM_SLB9635_I2C_TPM_H__ #define __DRIVERS_TPM_SLB9635_I2C_TPM_H__
-#include <stdint.h> +#include <types.h>
enum tpm_timeout { TPM_TIMEOUT = 1, /* msecs */ diff --git a/src/drivers/intel/fsp2_0/hand_off_block.c b/src/drivers/intel/fsp2_0/hand_off_block.c index fdc92a7..c5fa202 100644 --- a/src/drivers/intel/fsp2_0/hand_off_block.c +++ b/src/drivers/intel/fsp2_0/hand_off_block.c @@ -6,7 +6,7 @@ #include <console/console.h> #include <fsp/api.h> #include <fsp/util.h> -#include <stdint.h> +#include <types.h> #include <string.h>
#define HOB_HEADER_LEN 8 diff --git a/src/drivers/intel/fsp2_0/include/fsp/api.h b/src/drivers/intel/fsp2_0/include/fsp/api.h index c6c9179..76769ec 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/api.h +++ b/src/drivers/intel/fsp2_0/include/fsp/api.h @@ -3,7 +3,6 @@ #ifndef _FSP2_0_API_H_ #define _FSP2_0_API_H_
-#include <stddef.h> #include <stdint.h> #include <fsp/soc_binding.h> #include <soc/intel/common/mma.h> diff --git a/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h b/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h index 93e54b1..8ba8b3c 100644 --- a/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h +++ b/src/drivers/intel/fsp2_0/include/fsp/soc_binding.h @@ -3,7 +3,6 @@ #ifndef _FSP2_0_SOC_BINDING_H_ #define _FSP2_0_SOC_BINDING_H_
-#include <stddef.h>
#pragma pack(push)
diff --git a/src/drivers/secunet/dmi/smbios.c b/src/drivers/secunet/dmi/smbios.c index f407b51..05df959 100644 --- a/src/drivers/secunet/dmi/smbios.c +++ b/src/drivers/secunet/dmi/smbios.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <ctype.h> #include <commonlib/helpers.h> diff --git a/src/drivers/spi/boot_device_rw_nommap.c b/src/drivers/spi/boot_device_rw_nommap.c index a383f26..8059a14 100644 --- a/src/drivers/spi/boot_device_rw_nommap.c +++ b/src/drivers/spi/boot_device_rw_nommap.c @@ -3,7 +3,7 @@ #include <boot_device.h> #include <spi_flash.h> #include <spi-generic.h> -#include <stdint.h> +#include <types.h>
static struct spi_flash sfg; static bool sfg_init_done; diff --git a/src/drivers/spi/cbfs_spi.c b/src/drivers/spi/cbfs_spi.c index 0034460..1ff2bcb 100644 --- a/src/drivers/spi/cbfs_spi.c +++ b/src/drivers/spi/cbfs_spi.c @@ -11,7 +11,7 @@ #include <spi_flash.h> #include <symbols.h> #include <cbmem.h> -#include <stdint.h> +#include <types.h> #include <timer.h>
static struct spi_flash spi_flash_info; diff --git a/src/drivers/spi/spi_sdcard.c b/src/drivers/spi/spi_sdcard.c index 5d0a71b..f8faceb 100644 --- a/src/drivers/spi/spi_sdcard.c +++ b/src/drivers/spi/spi_sdcard.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include <stdint.h> +#include <types.h> #include <string.h> #include <spi-generic.h> #include <spi_sdcard.h> diff --git a/src/ec/google/chromeec/crosec_proto.c b/src/ec/google/chromeec/crosec_proto.c index e54ad7e..593c320 100644 --- a/src/ec/google/chromeec/crosec_proto.c +++ b/src/ec/google/chromeec/crosec_proto.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h> -#include <stdint.h> +#include <types.h> #include <string.h>
#include "ec.h" diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index a97dfb3..79b1b5c 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <assert.h> #include <cbmem.h> diff --git a/src/ec/google/chromeec/ec_i2c.c b/src/ec/google/chromeec/ec_i2c.c index 68e3cf2..b79e09d 100644 --- a/src/ec/google/chromeec/ec_i2c.c +++ b/src/ec/google/chromeec/ec_i2c.c @@ -2,7 +2,7 @@
#include <console/console.h> #include <device/i2c_simple.h> -#include <stdint.h> +#include <types.h> #include <string.h>
#include "ec.h" diff --git a/src/ec/google/chromeec/ec_lpc.c b/src/ec/google/chromeec/ec_lpc.c index 5306dcc..9e4c0e6 100644 --- a/src/ec/google/chromeec/ec_lpc.c +++ b/src/ec/google/chromeec/ec_lpc.c @@ -6,7 +6,7 @@ #include <delay.h> #include <device/pnp.h> #include <ec/google/common/mec.h> -#include <stdint.h> +#include <types.h>
#include "chip.h" #include "ec.h" diff --git a/src/ec/google/chromeec/vstore.c b/src/ec/google/chromeec/vstore.c index 2a33a3f..c5a68e2 100644 --- a/src/ec/google/chromeec/vstore.c +++ b/src/ec/google/chromeec/vstore.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include "ec.h" #include "ec_commands.h" diff --git a/src/ec/google/wilco/chip.c b/src/ec/google/wilco/chip.c index dccaa23..87aa0b9 100644 --- a/src/ec/google/wilco/chip.c +++ b/src/ec/google/wilco/chip.c @@ -11,7 +11,7 @@ #include <ec/acpi/ec.h> #include <intelblocks/cpulib.h> #include <pc80/keyboard.h> -#include <stdint.h> +#include <types.h>
#include "commands.h" #include "ec.h" diff --git a/src/ec/google/wilco/commands.c b/src/ec/google/wilco/commands.c index 98b1efb..f6b1a21 100644 --- a/src/ec/google/wilco/commands.c +++ b/src/ec/google/wilco/commands.c @@ -2,7 +2,7 @@
#include <console/console.h> #include <ec/acpi/ec.h> -#include <stdint.h> +#include <types.h> #include <string.h>
#include "ec.h" diff --git a/src/ec/kontron/kempld/kempld_i2c.c b/src/ec/kontron/kempld/kempld_i2c.c index 296cf76..78c6034 100644 --- a/src/ec/kontron/kempld/kempld_i2c.c +++ b/src/ec/kontron/kempld/kempld_i2c.c @@ -6,7 +6,7 @@ * Based on the similar driver in Linux. */
-#include <stdint.h> +#include <types.h> #include <console/console.h> #include <device/device.h> #include <device/i2c_bus.h> diff --git a/src/include/acpi/acpi_device.h b/src/include/acpi/acpi_device.h index 20dd8a4..21eb8db 100644 --- a/src/include/acpi/acpi_device.h +++ b/src/include/acpi/acpi_device.h @@ -4,7 +4,7 @@ #define __ACPI_ACPI_DEVICE_H__
#include <device/i2c.h> -#include <stdint.h> +#include <types.h> #include <spi-generic.h>
enum acpi_dp_type { diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index a99489d..8611e1d 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -3,7 +3,7 @@ #ifndef __ACPI_ACPIGEN_H__ #define __ACPI_ACPIGEN_H__
-#include <stdint.h> +#include <types.h> #include <acpi/acpi.h> #include <acpi/acpi_device.h> #include <acpi/acpi_pld.h> diff --git a/src/include/crc_byte.h b/src/include/crc_byte.h index 2e93fe9..869c9c4 100644 --- a/src/include/crc_byte.h +++ b/src/include/crc_byte.h @@ -3,7 +3,7 @@ #ifndef CRC_BYTE_H #define CRC_BYTE_H
-#include <stdint.h> +#include <types.h>
/* This function is used to calculate crc7 byte by byte, with polynomial * x^7 + x^3 + 1. diff --git a/src/include/device/i2c_bus.h b/src/include/device/i2c_bus.h index 0e35a61..158cc93 100644 --- a/src/include/device/i2c_bus.h +++ b/src/include/device/i2c_bus.h @@ -3,7 +3,7 @@ #ifndef _DEVICE_I2C_BUS_H_ #define _DEVICE_I2C_BUS_H_
-#include <stdint.h> +#include <types.h> #include <device/i2c.h> #include <device/device.h>
diff --git a/src/include/device/pci_rom.h b/src/include/device/pci_rom.h index c49389f..e6e6d53 100644 --- a/src/include/device/pci_rom.h +++ b/src/include/device/pci_rom.h @@ -1,7 +1,6 @@ #ifndef PCI_ROM_H #define PCI_ROM_H #include <endian.h> -#include <stddef.h> #include <acpi/acpi.h>
#define PCI_ROM_HDR 0xAA55 diff --git a/src/include/device/smbus_host.h b/src/include/device/smbus_host.h index d9390ea..7ab3e9e 100644 --- a/src/include/device/smbus_host.h +++ b/src/include/device/smbus_host.h @@ -3,7 +3,7 @@ #ifndef __DEVICE_SMBUS_HOST_H__ #define __DEVICE_SMBUS_HOST_H__
-#include <stdint.h> +#include <types.h> #include <console/console.h>
/* Low-level SMBUS host controller. */ diff --git a/src/include/device/soundwire.h b/src/include/device/soundwire.h index 85e3186..9e96bbf 100644 --- a/src/include/device/soundwire.h +++ b/src/include/device/soundwire.h @@ -17,7 +17,7 @@ #define __DEVICE_SOUNDWIRE_H__
#include <stdbool.h> -#include <stdint.h> +#include <types.h>
/** * enum soundwire_limits - Limits on number of SoundWire devices in topology. diff --git a/src/include/device_tree.h b/src/include/device_tree.h index bd0d151..5f32196 100644 --- a/src/include/device_tree.h +++ b/src/include/device_tree.h @@ -4,7 +4,7 @@ #ifndef __DEVICE_TREE_H__ #define __DEVICE_TREE_H__
-#include <stdint.h> +#include <types.h> #include <list.h>
/* diff --git a/src/include/dimm_info_util.h b/src/include/dimm_info_util.h index d20e8cd..3f491b2 100644 --- a/src/include/dimm_info_util.h +++ b/src/include/dimm_info_util.h @@ -4,7 +4,7 @@ #define _DIMM_INFO_UTIL_H_
#include <smbios.h> -#include <stdint.h> +#include <types.h>
/** * Convert the SMBIOS bit widths into an SPD encoded width. diff --git a/src/include/region_file.h b/src/include/region_file.h index 0df64e5..5c36caf 100644 --- a/src/include/region_file.h +++ b/src/include/region_file.h @@ -4,7 +4,7 @@ #define REGION_FILE_H
#include <commonlib/region.h> -#include <stdint.h> +#include <types.h>
/* * A region file is an abstraction to allow appending updates in a diff --git a/src/lib/fit.c b/src/lib/fit.c index 748cd61..e038289 100644 --- a/src/lib/fit.c +++ b/src/lib/fit.c @@ -6,7 +6,7 @@ #include <console/console.h> #include <ctype.h> #include <endian.h> -#include <stdint.h> +#include <types.h> #include <bootmem.h> #include <stdlib.h> #include <string.h> diff --git a/src/lib/gcov-glue.c b/src/lib/gcov-glue.c index 101aec9..1cbe875 100644 --- a/src/lib/gcov-glue.c +++ b/src/lib/gcov-glue.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <bootstate.h> #include <cbmem.h>
diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c index 73b781a..d8a0f31 100644 --- a/src/lib/reg_script.c +++ b/src/lib/reg_script.c @@ -8,7 +8,7 @@ #include <device/device.h> #include <device/resource.h> #include <device/pci.h> -#include <stdint.h> +#include <types.h> #include <reg_script.h>
#if CONFIG(ARCH_X86) diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c index 7944535..f097a63 100644 --- a/src/lib/rmodule.c +++ b/src/lib/rmodule.c @@ -2,7 +2,7 @@ #include <assert.h> #include <cbmem.h> #include <cbfs.h> -#include <stdint.h> +#include <types.h> #include <stdlib.h> #include <string.h> #include <console/console.h> diff --git a/src/lib/selfboot.c b/src/lib/selfboot.c index c5ad525..4bb110d 100644 --- a/src/lib/selfboot.c +++ b/src/lib/selfboot.c @@ -3,7 +3,7 @@ #include <commonlib/bsd/compression.h> #include <commonlib/endian.h> #include <console/console.h> -#include <stdint.h> +#include <types.h> #include <stdlib.h> #include <string.h> #include <symbols.h> diff --git a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h index 5d8355b..f4b6093 100644 --- a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h @@ -8,7 +8,7 @@ #define __BASEBOARD_VARIANTS_H__
#include <soc/gpio.h> -#include <stdint.h> +#include <types.h>
/* The next set of functions return the gpio table and fill in the number of * entries for each table. */ diff --git a/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h index c72df8f..c46f757 100644 --- a/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/fizz/variants/baseboard/include/baseboard/variants.h @@ -4,7 +4,7 @@ #define __BASEBOARD_VARIANTS_H__
#include <soc/gpio.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* diff --git a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h index 2f06a55..5c4a394 100644 --- a/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/hatch/variants/baseboard/include/baseboard/variants.h @@ -5,7 +5,7 @@
#include <soc/cnl_memcfg_init.h> #include <soc/gpio.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* diff --git a/src/mainboard/google/link/early_init.c b/src/mainboard/google/link/early_init.c index 8360f2a..970bd82 100644 --- a/src/mainboard/google/link/early_init.c +++ b/src/mainboard/google/link/early_init.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <device/pci_ops.h> #include <acpi/acpi.h> diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c index e6dbd03..18010ce 100644 --- a/src/mainboard/google/octopus/mainboard.c +++ b/src/mainboard/google/octopus/mainboard.c @@ -17,7 +17,7 @@ #include <soc/gpio.h> #include <soc/nhlt.h> #include <soc/pci_devs.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h> #include <variant/ec.h> #include <variant/gpio.h> diff --git a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h index 206ce8b..cab28a0 100644 --- a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h @@ -5,7 +5,7 @@
#include <soc/gpio.h> #include <soc/meminit.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* The next set of functions return the gpio table and fill in the number of diff --git a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h index 1fdc32f..47edcdf 100644 --- a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h @@ -4,7 +4,7 @@ #define __BASEBOARD_VARIANTS_H__
#include <soc/gpio.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* diff --git a/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h index 5b08c6a..ea79f13 100644 --- a/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/reef/variants/baseboard/include/baseboard/variants.h @@ -5,7 +5,7 @@
#include <soc/gpio.h> #include <soc/meminit.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* Return the sku id based off the strapping resistors attached to SoC. */ diff --git a/src/mainboard/google/reef/variants/coral/mainboard.c b/src/mainboard/google/reef/variants/coral/mainboard.c index 683624c..581534d 100644 --- a/src/mainboard/google/reef/variants/coral/mainboard.c +++ b/src/mainboard/google/reef/variants/coral/mainboard.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <drivers/intel/gma/opregion.h> #include <ec/google/chromeec/ec.h> #include "baseboard/variants.h" diff --git a/src/mainboard/google/slippy/variants/leon/romstage.c b/src/mainboard/google/slippy/variants/leon/romstage.c index 4485c55..c0c4308 100644 --- a/src/mainboard/google/slippy/variants/leon/romstage.c +++ b/src/mainboard/google/slippy/variants/leon/romstage.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <cbfs.h> #include <console/console.h> diff --git a/src/mainboard/google/slippy/variants/peppy/romstage.c b/src/mainboard/google/slippy/variants/peppy/romstage.c index 0f46a33..bf0c3ae9 100644 --- a/src/mainboard/google/slippy/variants/peppy/romstage.c +++ b/src/mainboard/google/slippy/variants/peppy/romstage.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <cbfs.h> #include <console/console.h> diff --git a/src/mainboard/google/slippy/variants/wolf/romstage.c b/src/mainboard/google/slippy/variants/wolf/romstage.c index 7ebb7aa..c4d6d35 100644 --- a/src/mainboard/google/slippy/variants/wolf/romstage.c +++ b/src/mainboard/google/slippy/variants/wolf/romstage.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <cbfs.h> #include <console/console.h> diff --git a/src/mainboard/intel/cannonlake_rvp/variants/baseboard/include/baseboard/variants.h b/src/mainboard/intel/cannonlake_rvp/variants/baseboard/include/baseboard/variants.h index af9ba07..bb9ca0d 100644 --- a/src/mainboard/intel/cannonlake_rvp/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/intel/cannonlake_rvp/variants/baseboard/include/baseboard/variants.h @@ -4,7 +4,7 @@ #define __BASEBOARD_VARIANTS_H__
#include <soc/gpio.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* The next set of functions return the gpio table and fill in the number of diff --git a/src/mainboard/intel/coffeelake_rvp/variants/baseboard/include/baseboard/variants.h b/src/mainboard/intel/coffeelake_rvp/variants/baseboard/include/baseboard/variants.h index 48abbfe..a492fcd 100644 --- a/src/mainboard/intel/coffeelake_rvp/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/intel/coffeelake_rvp/variants/baseboard/include/baseboard/variants.h @@ -5,7 +5,7 @@
#include <soc/cnl_memcfg_init.h> #include <soc/gpio.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* The next set of functions return the gpio table and fill in the number of diff --git a/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/variants.h b/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/variants.h index 178064f..4623ae6 100644 --- a/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/intel/glkrvp/variants/baseboard/include/baseboard/variants.h @@ -5,7 +5,7 @@
#include <soc/gpio.h> #include <soc/meminit.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/** diff --git a/src/mainboard/intel/icelake_rvp/board_id.c b/src/mainboard/intel/icelake_rvp/board_id.c index 0ab7e6a..ea3d584 100644 --- a/src/mainboard/intel/icelake_rvp/board_id.c +++ b/src/mainboard/intel/icelake_rvp/board_id.c @@ -2,7 +2,7 @@ #include "board_id.h" #include <boardid.h> #include <ec/acpi/ec.h> -#include <stdint.h> +#include <types.h> #include <ec/google/chromeec/ec.h>
static int get_board_id_via_ext_ec(void) diff --git a/src/mainboard/intel/icelake_rvp/variants/baseboard/include/baseboard/variants.h b/src/mainboard/intel/icelake_rvp/variants/baseboard/include/baseboard/variants.h index 16a4cbc..562fb74 100644 --- a/src/mainboard/intel/icelake_rvp/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/intel/icelake_rvp/variants/baseboard/include/baseboard/variants.h @@ -4,7 +4,7 @@ #define __BASEBOARD_VARIANTS_H__
#include <soc/gpio.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* The next set of functions return the gpio table and fill in the number of diff --git a/src/mainboard/intel/jasperlake_rvp/board_id.c b/src/mainboard/intel/jasperlake_rvp/board_id.c index 90609ff..56d960b 100644 --- a/src/mainboard/intel/jasperlake_rvp/board_id.c +++ b/src/mainboard/intel/jasperlake_rvp/board_id.c @@ -3,7 +3,7 @@ #include <boardid.h> #include <ec/acpi/ec.h> #include <ec/google/chromeec/ec.h> -#include <stdint.h> +#include <types.h>
#include "board_id.h"
diff --git a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/variants.h b/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/variants.h index e2e331a..0736c1b 100644 --- a/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/intel/jasperlake_rvp/variants/baseboard/include/baseboard/variants.h @@ -5,7 +5,7 @@
#include <soc/gpio.h> #include <soc/meminit.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
enum jsl_board_id { diff --git a/src/mainboard/intel/kunimitsu/spd/spd_util.c b/src/mainboard/intel/kunimitsu/spd/spd_util.c index a1faf7e..b0b4672 100644 --- a/src/mainboard/intel/kunimitsu/spd/spd_util.c +++ b/src/mainboard/intel/kunimitsu/spd/spd_util.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <cbfs.h> #include <console/console.h> -#include <stdint.h> +#include <types.h> #include <string.h> #include "boardid.h" #include "spd.h" diff --git a/src/mainboard/intel/tglrvp/board_id.c b/src/mainboard/intel/tglrvp/board_id.c index a6cad1c..2e07b80 100644 --- a/src/mainboard/intel/tglrvp/board_id.c +++ b/src/mainboard/intel/tglrvp/board_id.c @@ -3,7 +3,7 @@ #include <boardid.h> #include <ec/acpi/ec.h> #include <ec/google/chromeec/ec.h> -#include <stdint.h> +#include <types.h>
#include "board_id.h"
diff --git a/src/mainboard/intel/tglrvp/variants/baseboard/include/baseboard/variants.h b/src/mainboard/intel/tglrvp/variants/baseboard/include/baseboard/variants.h index 0da97cd..ad87407 100644 --- a/src/mainboard/intel/tglrvp/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/intel/tglrvp/variants/baseboard/include/baseboard/variants.h @@ -5,7 +5,7 @@
#include <soc/gpio.h> #include <soc/meminit.h> -#include <stdint.h> +#include <types.h> #include <vendorcode/google/chromeos/chromeos.h>
/* The next set of functions return the gpio table and fill in the number of diff --git a/src/mainboard/lenovo/s230u/early_init.c b/src/mainboard/lenovo/s230u/early_init.c index bbf0c2f..a96e7c3 100644 --- a/src/mainboard/lenovo/s230u/early_init.c +++ b/src/mainboard/lenovo/s230u/early_init.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <cbfs.h> #include <device/pci_ops.h> diff --git a/src/mainboard/lenovo/x1_carbon_gen1/early_init.c b/src/mainboard/lenovo/x1_carbon_gen1/early_init.c index f5299ea..784de46 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/early_init.c +++ b/src/mainboard/lenovo/x1_carbon_gen1/early_init.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <console/console.h> #include <northbridge/intel/sandybridge/sandybridge.h> diff --git a/src/mainboard/samsung/lumpy/early_init.c b/src/mainboard/samsung/lumpy/early_init.c index 091cbc5..7966ac2 100644 --- a/src/mainboard/samsung/lumpy/early_init.c +++ b/src/mainboard/samsung/lumpy/early_init.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <arch/io.h> #include <bootblock_common.h> diff --git a/src/mainboard/scaleway/tagada/bmcinfo.c b/src/mainboard/scaleway/tagada/bmcinfo.c index 0be5532..e8e6eea 100644 --- a/src/mainboard/scaleway/tagada/bmcinfo.c +++ b/src/mainboard/scaleway/tagada/bmcinfo.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <console/console.h> #include <console/uart.h>
diff --git a/src/mainboard/supermicro/x9scl/early_init.c b/src/mainboard/supermicro/x9scl/early_init.c index 4a31884..1f0a4e5 100644 --- a/src/mainboard/supermicro/x9scl/early_init.c +++ b/src/mainboard/supermicro/x9scl/early_init.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <device/pci_ops.h> #include <device/pnp_def.h> #include <device/pnp_ops.h> diff --git a/src/northbridge/amd/agesa/agesa_helper.h b/src/northbridge/amd/agesa/agesa_helper.h index 8d229b1..389eba2 100644 --- a/src/northbridge/amd/agesa/agesa_helper.h +++ b/src/northbridge/amd/agesa/agesa_helper.h @@ -3,7 +3,6 @@ #ifndef _AGESA_HELPER_H_ #define _AGESA_HELPER_H_
-#include <stddef.h> #include <arch/romstage.h>
enum { diff --git a/src/northbridge/intel/gm45/memmap.c b/src/northbridge/intel/gm45/memmap.c index 4fe3998..d19d6d0 100644 --- a/src/northbridge/intel/gm45/memmap.c +++ b/src/northbridge/intel/gm45/memmap.c @@ -3,7 +3,7 @@ // Use simple device model for this file even in ramstage #define __SIMPLE_DEVICE__
-#include <stdint.h> +#include <types.h> #include <arch/romstage.h> #include <device/pci_ops.h> #include <device/pci_def.h> diff --git a/src/northbridge/intel/haswell/northbridge.c b/src/northbridge/intel/haswell/northbridge.c index c282aea..476d240 100644 --- a/src/northbridge/intel/haswell/northbridge.c +++ b/src/northbridge/intel/haswell/northbridge.c @@ -3,7 +3,7 @@ #include <commonlib/helpers.h> #include <console/console.h> #include <acpi/acpi.h> -#include <stdint.h> +#include <types.h> #include <delay.h> #include <cpu/intel/haswell/haswell.h> #include <device/device.h> diff --git a/src/northbridge/intel/i945/memmap.c b/src/northbridge/intel/i945/memmap.c index 07aea98..38dc490 100644 --- a/src/northbridge/intel/i945/memmap.c +++ b/src/northbridge/intel/i945/memmap.c @@ -12,7 +12,7 @@ #include <cpu/x86/smm.h> #include <program_loading.h> #include <cpu/intel/smm_reloc.h> -#include <stdint.h> +#include <types.h>
/* Decodes TSEG region size to bytes. */ u32 decode_tseg_size(const u8 esmramc) diff --git a/src/northbridge/intel/pineview/memmap.c b/src/northbridge/intel/pineview/memmap.c index ad89aef..c8524ef 100644 --- a/src/northbridge/intel/pineview/memmap.c +++ b/src/northbridge/intel/pineview/memmap.c @@ -12,7 +12,7 @@ #include <cpu/x86/mtrr.h> #include <cpu/x86/smm.h> #include <cpu/intel/smm_reloc.h> -#include <stdint.h> +#include <types.h>
u8 decode_pciebar(u32 *const base, u32 *const len) { diff --git a/src/northbridge/intel/x4x/memmap.c b/src/northbridge/intel/x4x/memmap.c index ee1ec5e..2a4796e 100644 --- a/src/northbridge/intel/x4x/memmap.c +++ b/src/northbridge/intel/x4x/memmap.c @@ -4,7 +4,7 @@
#include <cbmem.h> #include <commonlib/helpers.h> -#include <stdint.h> +#include <types.h> #include <arch/romstage.h> #include <device/pci_ops.h> #include <device/pci_def.h> diff --git a/src/security/vboot/vboot_common.h b/src/security/vboot/vboot_common.h index 66e96e4..0c07382 100644 --- a/src/security/vboot/vboot_common.h +++ b/src/security/vboot/vboot_common.h @@ -3,7 +3,7 @@ #define __VBOOT_VBOOT_COMMON_H__
#include <commonlib/region.h> -#include <stdint.h> +#include <types.h> #include <vb2_api.h>
/* diff --git a/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h b/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h index 764078f..6993b27 100644 --- a/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h +++ b/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h @@ -3,7 +3,7 @@ #ifndef __AMD_PCI_UTIL_H__ #define __AMD_PCI_UTIL_H__
-#include <stdint.h> +#include <types.h> #include <soc/amd_pci_int_defs.h>
/* FCH index/data registers */ diff --git a/src/soc/amd/picasso/chip.h b/src/soc/amd/picasso/chip.h index e52751a..69eece9 100644 --- a/src/soc/amd/picasso/chip.h +++ b/src/soc/amd/picasso/chip.h @@ -3,7 +3,6 @@ #ifndef __PICASSO_CHIP_H__ #define __PICASSO_CHIP_H__
-#include <stddef.h> #include <stdint.h> #include <amdblocks/chip.h> #include <commonlib/helpers.h> diff --git a/src/soc/amd/picasso/gpio.c b/src/soc/amd/picasso/gpio.c index c402fb5..c794553 100644 --- a/src/soc/amd/picasso/gpio.c +++ b/src/soc/amd/picasso/gpio.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <amdblocks/gpio_banks.h> #include <amdblocks/acpimmio.h> #include <soc/gpio.h> diff --git a/src/soc/amd/picasso/memmap.c b/src/soc/amd/picasso/memmap.c index 5f4ba42..b7f6bfb 100644 --- a/src/soc/amd/picasso/memmap.c +++ b/src/soc/amd/picasso/memmap.c @@ -3,7 +3,7 @@ #define __SIMPLE_DEVICE__
#include <assert.h> -#include <stdint.h> +#include <types.h> #include <console/console.h> #include <cpu/x86/smm.h> #include <cpu/amd/msr.h> diff --git a/src/soc/amd/stoneyridge/gpio.c b/src/soc/amd/stoneyridge/gpio.c index a595014..7c02c11 100644 --- a/src/soc/amd/stoneyridge/gpio.c +++ b/src/soc/amd/stoneyridge/gpio.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <amdblocks/gpio_banks.h> #include <amdblocks/acpimmio.h> #include <soc/gpio.h> diff --git a/src/soc/amd/stoneyridge/memmap.c b/src/soc/amd/stoneyridge/memmap.c index 9807905..faf3db9 100644 --- a/src/soc/amd/stoneyridge/memmap.c +++ b/src/soc/amd/stoneyridge/memmap.c @@ -3,7 +3,7 @@ #define __SIMPLE_DEVICE__
#include <assert.h> -#include <stdint.h> +#include <types.h> #include <console/console.h> #include <cpu/x86/msr.h> #include <cpu/x86/smm.h> diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c index c6fdc60..0a9dfdb 100644 --- a/src/soc/amd/stoneyridge/northbridge.c +++ b/src/soc/amd/stoneyridge/northbridge.c @@ -24,7 +24,7 @@ #include <soc/northbridge.h> #include <soc/pci_devs.h> #include <soc/iomap.h> -#include <stdint.h> +#include <types.h> #include <string.h> #include <arch/bert_storage.h>
diff --git a/src/soc/cavium/cn81xx/include/soc/cpu.h b/src/soc/cavium/cn81xx/include/soc/cpu.h index ccbe82c..4d08a18 100644 --- a/src/soc/cavium/cn81xx/include/soc/cpu.h +++ b/src/soc/cavium/cn81xx/include/soc/cpu.h @@ -3,7 +3,7 @@ #ifndef __SOC_CAVIUM_CN81XX_CPU_H__ #define __SOC_CAVIUM_CN81XX_CPU_H__
-#include <stdint.h> +#include <types.h> #include <symbols.h>
/** diff --git a/src/soc/cavium/cn81xx/timer.c b/src/soc/cavium/cn81xx/timer.c index 6ac85ef..fa13ba6 100644 --- a/src/soc/cavium/cn81xx/timer.c +++ b/src/soc/cavium/cn81xx/timer.c @@ -10,7 +10,7 @@ #include <console/console.h> #include <soc/clock.h> #include <soc/timer.h> -#include <stdint.h> +#include <types.h> #include <timer.h> #include <soc/addressmap.h> #include <assert.h> diff --git a/src/soc/cavium/cn81xx/uart.c b/src/soc/cavium/cn81xx/uart.c index 03f94d5..8e2ccd8 100644 --- a/src/soc/cavium/cn81xx/uart.c +++ b/src/soc/cavium/cn81xx/uart.c @@ -8,7 +8,7 @@ #include <console/uart.h> #include <delay.h> #include <endian.h> -#include <stdint.h> +#include <types.h> #include <soc/clock.h> #include <soc/uart.h> #include <assert.h> diff --git a/src/soc/intel/apollolake/cse.c b/src/soc/intel/apollolake/cse.c index fef98e3..82b0a9c 100644 --- a/src/soc/intel/apollolake/cse.c +++ b/src/soc/intel/apollolake/cse.c @@ -13,7 +13,7 @@ #include <soc/pcr_ids.h> #include <soc/pci_devs.h> #include <device/pci_ops.h> -#include <stdint.h> +#include <types.h>
#define MKHI_GROUP_ID_MCA 0x0a diff --git a/src/soc/intel/broadwell/memmap.c b/src/soc/intel/broadwell/memmap.c index bada5fd..460cb07 100644 --- a/src/soc/intel/broadwell/memmap.c +++ b/src/soc/intel/broadwell/memmap.c @@ -8,7 +8,7 @@ #include <device/pci_ops.h> #include <soc/pci_devs.h> #include <soc/systemagent.h> -#include <stdint.h> +#include <types.h>
static uintptr_t dpr_region_start(void) { diff --git a/src/soc/intel/cannonlake/elog.c b/src/soc/intel/cannonlake/elog.c index fb25472..6a19cb4 100644 --- a/src/soc/intel/cannonlake/elog.c +++ b/src/soc/intel/cannonlake/elog.c @@ -4,7 +4,7 @@ #include <cbmem.h> #include <console/console.h> #include <device/pci_ops.h> -#include <stdint.h> +#include <types.h> #include <elog.h> #include <intelblocks/pmclib.h> #include <intelblocks/xhci.h> diff --git a/src/soc/intel/cannonlake/include/soc/gpio_defs.h b/src/soc/intel/cannonlake/include/soc/gpio_defs.h index 9b1690e..91e5d24 100644 --- a/src/soc/intel/cannonlake/include/soc/gpio_defs.h +++ b/src/soc/intel/cannonlake/include/soc/gpio_defs.h @@ -4,7 +4,6 @@ #define _SOC_CANNONLAKE_GPIO_DEFS_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_common.h> #include <soc/gpio_soc_defs.h> diff --git a/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h b/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h index a1f51d1..0ecaeab 100644 --- a/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h +++ b/src/soc/intel/cannonlake/include/soc/gpio_defs_cnp_h.h @@ -4,7 +4,6 @@ #define _SOC_CANNONLAKE_GPIO_DEFS_CNP_H_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_common.h> #include <soc/gpio_soc_defs_cnp_h.h> diff --git a/src/soc/intel/common/block/include/intelblocks/acpi.h b/src/soc/intel/common/block/include/intelblocks/acpi.h index dde06c0..33ed1ba 100644 --- a/src/soc/intel/common/block/include/intelblocks/acpi.h +++ b/src/soc/intel/common/block/include/intelblocks/acpi.h @@ -6,7 +6,7 @@ #include <acpi/acpi.h> #include <device/device.h> #include <intelblocks/cpulib.h> -#include <stdint.h> +#include <types.h>
/* Forward declare the power state struct here */ struct chipset_power_state; diff --git a/src/soc/intel/common/block/include/intelblocks/lpss.h b/src/soc/intel/common/block/include/intelblocks/lpss.h index 145857c..0556f63 100644 --- a/src/soc/intel/common/block/include/intelblocks/lpss.h +++ b/src/soc/intel/common/block/include/intelblocks/lpss.h @@ -4,7 +4,7 @@ #define SOC_INTEL_COMMON_BLOCK_LPSS_H
#include <device/device.h> -#include <stdint.h> +#include <types.h>
/* D0 and D3 enable config */ enum lpss_pwr_state { diff --git a/src/soc/intel/common/block/include/intelblocks/pmc.h b/src/soc/intel/common/block/include/intelblocks/pmc.h index 75e2127..b0efe7b 100644 --- a/src/soc/intel/common/block/include/intelblocks/pmc.h +++ b/src/soc/intel/common/block/include/intelblocks/pmc.h @@ -4,7 +4,7 @@ #define SOC_INTEL_COMMON_BLOCK_PMC_H
#include <device/device.h> -#include <stdint.h> +#include <types.h>
/* PMC controller resource structure */ struct pmc_resource_config { diff --git a/src/soc/intel/common/block/include/intelblocks/pmclib.h b/src/soc/intel/common/block/include/intelblocks/pmclib.h index 2b06a50..a28b301 100644 --- a/src/soc/intel/common/block/include/intelblocks/pmclib.h +++ b/src/soc/intel/common/block/include/intelblocks/pmclib.h @@ -4,7 +4,7 @@ #define SOC_INTEL_COMMON_BLOCK_PMCLIB_H
#include <device/pci_type.h> -#include <stdint.h> +#include <types.h>
/* Forward declare the power state struct here */ struct chipset_power_state; diff --git a/src/soc/intel/common/block/include/intelblocks/uart.h b/src/soc/intel/common/block/include/intelblocks/uart.h index 87fdf68..3d041aa 100644 --- a/src/soc/intel/common/block/include/intelblocks/uart.h +++ b/src/soc/intel/common/block/include/intelblocks/uart.h @@ -6,7 +6,7 @@ #include <console/uart.h> #include <device/device.h> #include <intelblocks/gpio.h> -#include <stdint.h> +#include <types.h>
#define MAX_GPIO_PAD_PER_UART 2
diff --git a/src/soc/intel/common/block/pmc/pmclib.c b/src/soc/intel/common/block/pmc/pmclib.c index 12eb38e..4a293d9 100644 --- a/src/soc/intel/common/block/pmc/pmclib.c +++ b/src/soc/intel/common/block/pmc/pmclib.c @@ -13,7 +13,7 @@ #include <pc80/mc146818rtc.h> #include <security/vboot/vboot_common.h> #include <soc/pm.h> -#include <stdint.h> +#include <types.h> #include <string.h> #include <timer.h>
diff --git a/src/soc/intel/common/mma.h b/src/soc/intel/common/mma.h index 2e01210..e8e7943 100644 --- a/src/soc/intel/common/mma.h +++ b/src/soc/intel/common/mma.h @@ -3,7 +3,7 @@ #ifndef _SOC_MMA_H_ #define _SOC_MMA_H_
-#include <stdint.h> +#include <types.h> #include <commonlib/region.h>
struct mma_config_param { diff --git a/src/soc/intel/common/smbios.h b/src/soc/intel/common/smbios.h index c7da3b3..3ae4f1e 100644 --- a/src/soc/intel/common/smbios.h +++ b/src/soc/intel/common/smbios.h @@ -3,7 +3,7 @@ #ifndef _COMMON_SMBIOS_H_ #define _COMMON_SMBIOS_H_
-#include <stdint.h> +#include <types.h> #include <memory_info.h>
/* Offset info DIMM_INFO SpdSave for start of serial number */ diff --git a/src/soc/intel/denverton_ns/gpio_dnv.c b/src/soc/intel/denverton_ns/gpio_dnv.c index 0999cce..0e7d4c9 100644 --- a/src/soc/intel/denverton_ns/gpio_dnv.c +++ b/src/soc/intel/denverton_ns/gpio_dnv.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <device/mmio.h> #include <console/console.h> diff --git a/src/soc/intel/denverton_ns/soc_util.c b/src/soc/intel/denverton_ns/soc_util.c index d5b9b34..faa158b 100644 --- a/src/soc/intel/denverton_ns/soc_util.c +++ b/src/soc/intel/denverton_ns/soc_util.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */
-#include <stdint.h> +#include <types.h> #include <device/mmio.h> #include <device/pci_ops.h> #include <device/pci.h> diff --git a/src/soc/intel/icelake/include/soc/gpio_defs.h b/src/soc/intel/icelake/include/soc/gpio_defs.h index 31f83d6..16ab084 100644 --- a/src/soc/intel/icelake/include/soc/gpio_defs.h +++ b/src/soc/intel/icelake/include/soc/gpio_defs.h @@ -4,7 +4,6 @@ #define _SOC_ICELAKE_GPIO_DEFS_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_soc_defs.h>
diff --git a/src/soc/intel/jasperlake/include/soc/gpio_defs.h b/src/soc/intel/jasperlake/include/soc/gpio_defs.h index 6e822c9..5a73ce9 100644 --- a/src/soc/intel/jasperlake/include/soc/gpio_defs.h +++ b/src/soc/intel/jasperlake/include/soc/gpio_defs.h @@ -4,7 +4,6 @@ #define _SOC_JASPERLAKE_GPIO_DEFS_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_soc_defs.h>
diff --git a/src/soc/intel/skylake/elog.c b/src/soc/intel/skylake/elog.c index 550ee41..8bc97b9 100644 --- a/src/soc/intel/skylake/elog.c +++ b/src/soc/intel/skylake/elog.c @@ -6,7 +6,7 @@ #include <console/console.h> #include <device/mmio.h> #include <device/pci_ops.h> -#include <stdint.h> +#include <types.h> #include <elog.h> #include <intelblocks/pmclib.h> #include <intelblocks/xhci.h> diff --git a/src/soc/intel/skylake/include/soc/gpio_defs.h b/src/soc/intel/skylake/include/soc/gpio_defs.h index 2a5e788..2256256 100644 --- a/src/soc/intel/skylake/include/soc/gpio_defs.h +++ b/src/soc/intel/skylake/include/soc/gpio_defs.h @@ -3,7 +3,6 @@ #ifndef _SOC_GPIO_DEFS_H_ #define _SOC_GPIO_DEFS_H_ #ifndef __ACPI__ -#include <stddef.h> #endif #if CONFIG(SKYLAKE_SOC_PCH_H) # include <soc/gpio_pch_h_defs.h> diff --git a/src/soc/intel/tigerlake/include/soc/gpio_defs.h b/src/soc/intel/tigerlake/include/soc/gpio_defs.h index dc1087c..81d0032 100644 --- a/src/soc/intel/tigerlake/include/soc/gpio_defs.h +++ b/src/soc/intel/tigerlake/include/soc/gpio_defs.h @@ -4,7 +4,6 @@ #define _SOC_TIGERLAKE_GPIO_DEFS_H_
#ifndef __ACPI__ -#include <stddef.h> #endif #include <soc/gpio_soc_defs.h>
diff --git a/src/soc/intel/xeon_sp/include/soc/lewisburg_pch_gpio_defs.h b/src/soc/intel/xeon_sp/include/soc/lewisburg_pch_gpio_defs.h index 93dcf20..91c95d4 100644 --- a/src/soc/intel/xeon_sp/include/soc/lewisburg_pch_gpio_defs.h +++ b/src/soc/intel/xeon_sp/include/soc/lewisburg_pch_gpio_defs.h @@ -4,7 +4,6 @@ #define LEWISBURG_GPIO_DEFS_H
#ifndef __ACPI__ -#include <stddef.h> #endif
/* GPIO Community 0 */ diff --git a/src/soc/mediatek/common/include/soc/gpio_common.h b/src/soc/mediatek/common/include/soc/gpio_common.h index 5348e05..68c9d3e 100644 --- a/src/soc/mediatek/common/include/soc/gpio_common.h +++ b/src/soc/mediatek/common/include/soc/gpio_common.h @@ -4,7 +4,6 @@ #define SOC_MEDIATEK_COMMON_GPIO_H
#include <soc/gpio_base.h> -#include <stddef.h> #include <stdint.h>
enum pull_enable { diff --git a/src/soc/mediatek/common/include/soc/usb_common.h b/src/soc/mediatek/common/include/soc/usb_common.h index 6fa050d..134b05e 100644 --- a/src/soc/mediatek/common/include/soc/usb_common.h +++ b/src/soc/mediatek/common/include/soc/usb_common.h @@ -3,7 +3,6 @@ #ifndef SOC_MEDIATEK_USB_COMMON_H #define SOC_MEDIATEK_USB_COMMON_H
-#include <stddef.h>
/* ip_pw_ctrl0 */ #define CTRL0_IP_SW_RST (0x1 << 0) diff --git a/src/soc/mediatek/mt8173/include/soc/addressmap.h b/src/soc/mediatek/mt8173/include/soc/addressmap.h index 4b2e150..16fa398 100644 --- a/src/soc/mediatek/mt8173/include/soc/addressmap.h +++ b/src/soc/mediatek/mt8173/include/soc/addressmap.h @@ -3,7 +3,6 @@ #ifndef __SOC_MEDIATEK_MT8173_INCLUDE_SOC_ADDRESS_MAP_H__ #define __SOC_MEDIATEK_MT8173_INCLUDE_SOC_ADDRESS_MAP_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/mediatek/mt8173/include/soc/spm.h b/src/soc/mediatek/mt8173/include/soc/spm.h index 0d8e0d3..b66b798 100644 --- a/src/soc/mediatek/mt8173/include/soc/spm.h +++ b/src/soc/mediatek/mt8173/include/soc/spm.h @@ -4,7 +4,6 @@ #define __SOC_MEDIATEK_MT8173_SPM_H__
#include <soc/addressmap.h> -#include <stddef.h>
enum { SPM_PROJECT_CODE = 0xb16 diff --git a/src/soc/nvidia/tegra124/include/soc/addressmap.h b/src/soc/nvidia/tegra124/include/soc/addressmap.h index bef4204..a54cee4 100644 --- a/src/soc/nvidia/tegra124/include/soc/addressmap.h +++ b/src/soc/nvidia/tegra124/include/soc/addressmap.h @@ -3,7 +3,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_INCLUDE_SOC_ADDRESS_MAP_H__ #define __SOC_NVIDIA_TEGRA124_INCLUDE_SOC_ADDRESS_MAP_H__
-#include <stddef.h>
enum { TEGRA_SRAM_BASE = 0x40000000, diff --git a/src/soc/nvidia/tegra124/include/soc/emc.h b/src/soc/nvidia/tegra124/include/soc/emc.h index 2242f10..c3c91c0 100644 --- a/src/soc/nvidia/tegra124/include/soc/emc.h +++ b/src/soc/nvidia/tegra124/include/soc/emc.h @@ -3,7 +3,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_EMC_H__ #define __SOC_NVIDIA_TEGRA124_EMC_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra124/include/soc/mc.h b/src/soc/nvidia/tegra124/include/soc/mc.h index b8c0a90..42dad67 100644 --- a/src/soc/nvidia/tegra124/include/soc/mc.h +++ b/src/soc/nvidia/tegra124/include/soc/mc.h @@ -3,7 +3,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_MC_H__ #define __SOC_NVIDIA_TEGRA124_MC_H__
-#include <stddef.h> #include <stdint.h>
// Memory Controller registers we need/care about diff --git a/src/soc/nvidia/tegra124/include/soc/sdram_param.h b/src/soc/nvidia/tegra124/include/soc/sdram_param.h index 45cd914..7acbd3c 100644 --- a/src/soc/nvidia/tegra124/include/soc/sdram_param.h +++ b/src/soc/nvidia/tegra124/include/soc/sdram_param.h @@ -10,7 +10,6 @@ #ifndef __SOC_NVIDIA_TEGRA124_SDRAM_PARAM_H__ #define __SOC_NVIDIA_TEGRA124_SDRAM_PARAM_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra124/include/soc/spi.h b/src/soc/nvidia/tegra124/include/soc/spi.h index 42214bc..a0846e1 100644 --- a/src/soc/nvidia/tegra124/include/soc/spi.h +++ b/src/soc/nvidia/tegra124/include/soc/spi.h @@ -5,7 +5,6 @@
#include <spi-generic.h> #include <soc/dma.h> -#include <stddef.h>
struct tegra_spi_regs { u32 command1; /* 0x000: SPI_COMMAND1 */ diff --git a/src/soc/nvidia/tegra210/include/soc/clk_rst.h b/src/soc/nvidia/tegra210/include/soc/clk_rst.h index d4bddad..4d82466 100644 --- a/src/soc/nvidia/tegra210/include/soc/clk_rst.h +++ b/src/soc/nvidia/tegra210/include/soc/clk_rst.h @@ -3,7 +3,6 @@ #ifndef _TEGRA210_CLK_RST_H_ #define _TEGRA210_CLK_RST_H_ #include <stdint.h> -#include <stddef.h>
/* Clock/Reset Controller (CLK_RST_CONTROLLER_) regs */ struct __packed clk_rst_ctlr { diff --git a/src/soc/nvidia/tegra210/include/soc/emc.h b/src/soc/nvidia/tegra210/include/soc/emc.h index 493f95f..0ebe97b 100644 --- a/src/soc/nvidia/tegra210/include/soc/emc.h +++ b/src/soc/nvidia/tegra210/include/soc/emc.h @@ -3,7 +3,6 @@ #ifndef __SOC_NVIDIA_TEGRA210_EMC_H__ #define __SOC_NVIDIA_TEGRA210_EMC_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra210/include/soc/funitcfg.h b/src/soc/nvidia/tegra210/include/soc/funitcfg.h index 493c9a0..404841c 100644 --- a/src/soc/nvidia/tegra210/include/soc/funitcfg.h +++ b/src/soc/nvidia/tegra210/include/soc/funitcfg.h @@ -6,7 +6,7 @@ #include <soc/clock.h> #include <soc/padconfig.h> #include <soc/pinmux.h> -#include <stdint.h> +#include <types.h>
#define FUNIT_INDEX(_name) FUNIT_##_name
diff --git a/src/soc/nvidia/tegra210/include/soc/mc.h b/src/soc/nvidia/tegra210/include/soc/mc.h index 0097575..54edcd6 100644 --- a/src/soc/nvidia/tegra210/include/soc/mc.h +++ b/src/soc/nvidia/tegra210/include/soc/mc.h @@ -3,7 +3,6 @@ #ifndef __SOC_NVIDIA_TEGRA210_MC_H__ #define __SOC_NVIDIA_TEGRA210_MC_H__
-#include <stddef.h> #include <stdint.h>
// Memory Controller registers we need/care about diff --git a/src/soc/nvidia/tegra210/include/soc/padconfig.h b/src/soc/nvidia/tegra210/include/soc/padconfig.h index b6b0d75..020b42c 100644 --- a/src/soc/nvidia/tegra210/include/soc/padconfig.h +++ b/src/soc/nvidia/tegra210/include/soc/padconfig.h @@ -3,7 +3,7 @@ #ifndef __SOC_NVIDIA_TEGRA210_PAD_CFG_H #define __SOC_NVIDIA_TEGRA210_PAD_CFG_H
-#include <stdint.h> +#include <types.h> #include <soc/pinmux.h>
struct pad_config { diff --git a/src/soc/nvidia/tegra210/include/soc/sdram_param.h b/src/soc/nvidia/tegra210/include/soc/sdram_param.h index 7513302..d63dbc5 100644 --- a/src/soc/nvidia/tegra210/include/soc/sdram_param.h +++ b/src/soc/nvidia/tegra210/include/soc/sdram_param.h @@ -10,7 +10,6 @@ #ifndef __SOC_NVIDIA_TEGRA210_SDRAM_PARAM_H__ #define __SOC_NVIDIA_TEGRA210_SDRAM_PARAM_H__
-#include <stddef.h> #include <stdint.h>
enum { diff --git a/src/soc/nvidia/tegra210/include/soc/spi.h b/src/soc/nvidia/tegra210/include/soc/spi.h index 53de7cf..598f364 100644 --- a/src/soc/nvidia/tegra210/include/soc/spi.h +++ b/src/soc/nvidia/tegra210/include/soc/spi.h @@ -5,7 +5,6 @@
#include <soc/dma.h> #include <spi-generic.h> -#include <stddef.h>
struct tegra_spi_regs { u32 command1; /* 0x000: SPI_COMMAND1 */ diff --git a/src/soc/rockchip/common/include/soc/spi.h b/src/soc/rockchip/common/include/soc/spi.h index 0184fef..675ee8f 100644 --- a/src/soc/rockchip/common/include/soc/spi.h +++ b/src/soc/rockchip/common/include/soc/spi.h @@ -5,7 +5,6 @@
/* This driver serves as a CBFS media source. */ #include <spi-generic.h> -#include <stddef.h>
struct rockchip_spi { u32 ctrlr0; diff --git a/src/soc/sifive/fu540/clock.c b/src/soc/sifive/fu540/clock.c index 9b21532..972ebb1 100644 --- a/src/soc/sifive/fu540/clock.c +++ b/src/soc/sifive/fu540/clock.c @@ -4,7 +4,7 @@ #include <console/console.h> #include <soc/clock.h> #include <soc/addressmap.h> -#include <stdint.h> +#include <types.h>
// 33.33 Mhz after reset #define FU540_BASE_FQY 33330 diff --git a/src/southbridge/amd/agesa/hudson/spi.c b/src/southbridge/amd/agesa/hudson/spi.c index cce11dc..a61404a 100644 --- a/src/southbridge/amd/agesa/hudson/spi.c +++ b/src/southbridge/amd/agesa/hudson/spi.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include <stdint.h> +#include <types.h> #include <device/mmio.h> #include <console/console.h> #include <spi_flash.h> diff --git a/src/southbridge/intel/common/spi.c b/src/southbridge/intel/common/spi.c index 380940c..3e0bd9c 100644 --- a/src/southbridge/intel/common/spi.c +++ b/src/southbridge/intel/common/spi.c @@ -4,7 +4,7 @@
/* This file is derived from the flashrom project. */
-#include <stdint.h> +#include <types.h> #include <string.h> #include <bootstate.h> #include <commonlib/helpers.h> diff --git a/src/superio/smsc/sch5545/sch5545_emi.h b/src/superio/smsc/sch5545/sch5545_emi.h index 2bf3a76..2d39982 100644 --- a/src/superio/smsc/sch5545/sch5545_emi.h +++ b/src/superio/smsc/sch5545/sch5545_emi.h @@ -4,7 +4,7 @@ #define SUPERIO_SCH_5545_EMI_H
#include <stdlib.h> -#include <stdint.h> +#include <types.h>
/* Embedded Memory Interface registers */ #define SCH5545_EMI_HOST_TO_EC_MAILBOX 0x0