summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-05-28 08:54:42 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-06-02 07:42:32 +0000
commit0c154af2175fcb05bffa4ccad11c40366f5417e7 (patch)
tree3779418baad8ad97239acddc24a09110cc1f3b6a /src/soc
parent48378e1f8d132a3d3bdbb7b1eac5c769c273e6e1 (diff)
src: Remove redundant includes
<types.h> is supposed to provide <commonlib/bsd/cb_err.h>, <stdbool.h>,<stdint.h> and <stddef.h>. So remove those includes each time when <types.h> is included. Change-Id: I886f02255099f3005852a2e6095b21ca86a940ed Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41817 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/acpimmio.h1
-rw-r--r--src/soc/amd/common/block/include/amdblocks/lpc.h1
-rw-r--r--src/soc/amd/common/block/lpc/espi_util.c2
-rw-r--r--src/soc/cavium/cn81xx/include/soc/soc.h1
-rw-r--r--src/soc/cavium/cn81xx/include/soc/timer.h1
-rw-r--r--src/soc/cavium/cn81xx/include/soc/uart.h1
-rw-r--r--src/soc/intel/common/block/include/intelblocks/cse.h1
-rw-r--r--src/soc/mediatek/mt8173/flash_controller.c1
-rw-r--r--src/soc/mediatek/mt8173/include/soc/dramc_register.h1
-rw-r--r--src/soc/mediatek/mt8173/include/soc/emi.h1
-rw-r--r--src/soc/mediatek/mt8183/include/soc/emi.h1
-rw-r--r--src/soc/mediatek/mt8183/include/soc/spm.h1
-rw-r--r--src/soc/nvidia/tegra/dc.h2
-rw-r--r--src/soc/nvidia/tegra124/spi.c1
-rw-r--r--src/soc/nvidia/tegra210/include/soc/dma.h1
-rw-r--r--src/soc/nvidia/tegra210/spi.c1
16 files changed, 1 insertions, 17 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/acpimmio.h b/src/soc/amd/common/block/include/amdblocks/acpimmio.h
index 0d41782003..84a9360d1b 100644
--- a/src/soc/amd/common/block/include/amdblocks/acpimmio.h
+++ b/src/soc/amd/common/block/include/amdblocks/acpimmio.h
@@ -4,7 +4,6 @@
#define __AMDBLOCKS_ACPIMMIO_H__
#include <device/mmio.h>
-#include <stdint.h>
#include <types.h>
#include <amdblocks/acpimmio_map.h>
diff --git a/src/soc/amd/common/block/include/amdblocks/lpc.h b/src/soc/amd/common/block/include/amdblocks/lpc.h
index 11acc78228..7412e7bb1b 100644
--- a/src/soc/amd/common/block/include/amdblocks/lpc.h
+++ b/src/soc/amd/common/block/include/amdblocks/lpc.h
@@ -4,7 +4,6 @@
#define __AMDBLOCKS_LPC_H__
#include <types.h>
-#include <stdint.h>
/* PCI registers for D14F3 */
#define LPC_PCI_CONTROL 0x40
diff --git a/src/soc/amd/common/block/lpc/espi_util.c b/src/soc/amd/common/block/lpc/espi_util.c
index 5ca0d2831a..3750a8b7f9 100644
--- a/src/soc/amd/common/block/lpc/espi_util.c
+++ b/src/soc/amd/common/block/lpc/espi_util.c
@@ -7,8 +7,6 @@
#include <console/console.h>
#include <espi.h>
#include <soc/pci_devs.h>
-#include <stddef.h>
-#include <stdint.h>
#include <timer.h>
#include <types.h>
diff --git a/src/soc/cavium/cn81xx/include/soc/soc.h b/src/soc/cavium/cn81xx/include/soc/soc.h
index 39395171f7..78343fd705 100644
--- a/src/soc/cavium/cn81xx/include/soc/soc.h
+++ b/src/soc/cavium/cn81xx/include/soc/soc.h
@@ -3,7 +3,6 @@
#ifndef __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
#define __SOC_CAVIUM_CN81XX_INCLUDE_SOC_SOC_H
-#include <stdint.h>
#include <types.h>
/* MIO BOOT Registers */
diff --git a/src/soc/cavium/cn81xx/include/soc/timer.h b/src/soc/cavium/cn81xx/include/soc/timer.h
index 99dbb6ad5a..d7225692f9 100644
--- a/src/soc/cavium/cn81xx/include/soc/timer.h
+++ b/src/soc/cavium/cn81xx/include/soc/timer.h
@@ -3,7 +3,6 @@
#ifndef __SOC_CAVIUM_CN81XX_TIMER_H__
#define __SOC_CAVIUM_CN81XX_TIMER_H__
-#include <stdint.h>
#include <types.h>
/* Watchdog functions */
diff --git a/src/soc/cavium/cn81xx/include/soc/uart.h b/src/soc/cavium/cn81xx/include/soc/uart.h
index db1a51eb90..afafd0ec1b 100644
--- a/src/soc/cavium/cn81xx/include/soc/uart.h
+++ b/src/soc/cavium/cn81xx/include/soc/uart.h
@@ -3,7 +3,6 @@
#ifndef __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
#define __SOC_CAVIUM_COMMON_INCLUDE_SOC_UART_H
-#include <stdint.h>
#include <types.h>
int uart_is_enabled(const size_t bus);
diff --git a/src/soc/intel/common/block/include/intelblocks/cse.h b/src/soc/intel/common/block/include/intelblocks/cse.h
index 9f85730e3f..a1dc3d9d56 100644
--- a/src/soc/intel/common/block/include/intelblocks/cse.h
+++ b/src/soc/intel/common/block/include/intelblocks/cse.h
@@ -3,7 +3,6 @@
#ifndef SOC_INTEL_COMMON_CSE_H
#define SOC_INTEL_COMMON_CSE_H
-#include <stdint.h>
#include <types.h>
/* MKHI Command groups */
diff --git a/src/soc/mediatek/mt8173/flash_controller.c b/src/soc/mediatek/mt8173/flash_controller.c
index c1f2dae7f3..64eff2e309 100644
--- a/src/soc/mediatek/mt8173/flash_controller.c
+++ b/src/soc/mediatek/mt8173/flash_controller.c
@@ -7,7 +7,6 @@
#include <console/console.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <stdint.h>
#include <string.h>
#include <symbols.h>
#include <timer.h>
diff --git a/src/soc/mediatek/mt8173/include/soc/dramc_register.h b/src/soc/mediatek/mt8173/include/soc/dramc_register.h
index 5841b24be7..cabc1dcd19 100644
--- a/src/soc/mediatek/mt8173/include/soc/dramc_register.h
+++ b/src/soc/mediatek/mt8173/include/soc/dramc_register.h
@@ -3,7 +3,6 @@
#ifndef _DRAMC_REGISTER_H_
#define _DRAMC_REGISTER_H_
-#include <stddef.h>
#include <types.h>
#define DRIVING_DS2_0 7 /* DS[2:0] 7->6 */
diff --git a/src/soc/mediatek/mt8173/include/soc/emi.h b/src/soc/mediatek/mt8173/include/soc/emi.h
index 8f12ee3ad9..1cc2577a94 100644
--- a/src/soc/mediatek/mt8173/include/soc/emi.h
+++ b/src/soc/mediatek/mt8173/include/soc/emi.h
@@ -4,7 +4,6 @@
#define SOC_MEDIATEK_MT8173_EMI_H
#include <soc/dramc_common.h>
-#include <stdint.h>
#include <types.h>
/* DDR type */
diff --git a/src/soc/mediatek/mt8183/include/soc/emi.h b/src/soc/mediatek/mt8183/include/soc/emi.h
index e775973b4c..b2d78b965f 100644
--- a/src/soc/mediatek/mt8183/include/soc/emi.h
+++ b/src/soc/mediatek/mt8183/include/soc/emi.h
@@ -3,7 +3,6 @@
#ifndef SOC_MEDIATEK_MT8183_EMI_H
#define SOC_MEDIATEK_MT8183_EMI_H
-#include <stdint.h>
#include <types.h>
#include <soc/dramc_common_mt8183.h>
diff --git a/src/soc/mediatek/mt8183/include/soc/spm.h b/src/soc/mediatek/mt8183/include/soc/spm.h
index e09d451ccf..fa6d6d00ce 100644
--- a/src/soc/mediatek/mt8183/include/soc/spm.h
+++ b/src/soc/mediatek/mt8183/include/soc/spm.h
@@ -4,7 +4,6 @@
#define SOC_MEDIATEK_MT8183_SPM_H
#include <soc/addressmap.h>
-#include <stdint.h>
#include <types.h>
/* SPM READ/WRITE CFG */
diff --git a/src/soc/nvidia/tegra/dc.h b/src/soc/nvidia/tegra/dc.h
index f0f5b11172..27bbee80e6 100644
--- a/src/soc/nvidia/tegra/dc.h
+++ b/src/soc/nvidia/tegra/dc.h
@@ -2,8 +2,8 @@
#ifndef __SOC_NVIDIA_TEGRA_DC_H
#define __SOC_NVIDIA_TEGRA_DC_H
+
#include <device/device.h>
-#include <stddef.h>
#include <types.h>
/* Register definitions for the Tegra display controller */
diff --git a/src/soc/nvidia/tegra124/spi.c b/src/soc/nvidia/tegra124/spi.c
index 6a2572167e..adf0248849 100644
--- a/src/soc/nvidia/tegra124/spi.c
+++ b/src/soc/nvidia/tegra124/spi.c
@@ -7,7 +7,6 @@
#include <boot_device.h>
#include <console/console.h>
#include <delay.h>
-#include <stdint.h>
#include <soc/addressmap.h>
#include <soc/dma.h>
#include <soc/spi.h>
diff --git a/src/soc/nvidia/tegra210/include/soc/dma.h b/src/soc/nvidia/tegra210/include/soc/dma.h
index 3add2baf99..b06cec6212 100644
--- a/src/soc/nvidia/tegra210/include/soc/dma.h
+++ b/src/soc/nvidia/tegra210/include/soc/dma.h
@@ -3,7 +3,6 @@
#ifndef __NVIDIA_TEGRA210_DMA_H__
#define __NVIDIA_TEGRA210_DMA_H__
-#include <stdint.h>
#include <soc/addressmap.h>
#include <types.h>
diff --git a/src/soc/nvidia/tegra210/spi.c b/src/soc/nvidia/tegra210/spi.c
index eae8f39cc9..8fde9c2ea7 100644
--- a/src/soc/nvidia/tegra210/spi.c
+++ b/src/soc/nvidia/tegra210/spi.c
@@ -7,7 +7,6 @@
#include <boot_device.h>
#include <console/console.h>
#include <delay.h>
-#include <stdint.h>
#include <spi-generic.h>
#include <spi_flash.h>
#include <soc/addressmap.h>