diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-05-15 21:11:39 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-05-29 20:28:56 +0000 |
commit | 27d02d8286aff64115ae593a189c38fdaf3ce769 (patch) | |
tree | 53b2eccef24a14c530b5af9d75488a1ff9147342 /src/soc/nvidia/tegra210 | |
parent | ab89edbccf6e614213bbd88f5dbd5c8bf9a5d4c6 (diff) |
src/soc: Add missing 'include <types.h>'
<types.h> is supposed to provide <stdint.h> and <stddef.h>.
When <types.h> is included, <stdint.h> and/or <stddef.h> is removed.
Change-Id: I2db0a647bc657a3626cb5e78f23e9198e290261a
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32810
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lijian Zhao <lijian.zhao@intel.com>
Diffstat (limited to 'src/soc/nvidia/tegra210')
-rw-r--r-- | src/soc/nvidia/tegra210/dsi.c | 8 | ||||
-rw-r--r-- | src/soc/nvidia/tegra210/include/soc/dma.h | 1 | ||||
-rw-r--r-- | src/soc/nvidia/tegra210/mipi-phy.c | 3 | ||||
-rw-r--r-- | src/soc/nvidia/tegra210/spi.c | 3 |
4 files changed, 8 insertions, 7 deletions
diff --git a/src/soc/nvidia/tegra210/dsi.c b/src/soc/nvidia/tegra210/dsi.c index 76054f0156..ae20d44d16 100644 --- a/src/soc/nvidia/tegra210/dsi.c +++ b/src/soc/nvidia/tegra210/dsi.c @@ -12,9 +12,10 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ + +#include <commonlib/helpers.h> #include <console/console.h> #include <device/mmio.h> -#include <stdint.h> #include <stdlib.h> #include <delay.h> #include <timer.h> @@ -24,14 +25,15 @@ #include <edid.h> #include <soc/nvidia/tegra/types.h> #include <soc/nvidia/tegra/dc.h> -#include "chip.h" #include <soc/display.h> #include <soc/mipi_dsi.h> #include <soc/mipi_display.h> #include <soc/tegra_dsi.h> #include <soc/mipi-phy.h> +#include <types.h> + +#include "chip.h" #include "jdi_25x18_display/panel-jdi-lpm102a188a.h" -#include <commonlib/helpers.h> struct tegra_mipi_device mipi_device_data[NUM_DSI]; diff --git a/src/soc/nvidia/tegra210/include/soc/dma.h b/src/soc/nvidia/tegra210/include/soc/dma.h index 1093479d5f..3cb94ce8d3 100644 --- a/src/soc/nvidia/tegra210/include/soc/dma.h +++ b/src/soc/nvidia/tegra210/include/soc/dma.h @@ -19,6 +19,7 @@ #include <inttypes.h> #include <soc/addressmap.h> +#include <types.h> /* * The DMA engine operates on 4 bytes at a time, so make sure any data diff --git a/src/soc/nvidia/tegra210/mipi-phy.c b/src/soc/nvidia/tegra210/mipi-phy.c index 4e6bdf0242..4e56730d3b 100644 --- a/src/soc/nvidia/tegra210/mipi-phy.c +++ b/src/soc/nvidia/tegra210/mipi-phy.c @@ -13,9 +13,7 @@ * GNU General Public License for more details. */ -#include <stdint.h> #include <stdlib.h> - #include <soc/addressmap.h> #include <soc/clock.h> #include <device/device.h> @@ -25,6 +23,7 @@ #include <soc/mipi_display.h> #include <soc/tegra_dsi.h> #include <soc/mipi-phy.h> +#include <types.h> int mipi_dphy_set_timing(struct tegra_dsi *dsi) { diff --git a/src/soc/nvidia/tegra210/spi.c b/src/soc/nvidia/tegra210/spi.c index edb052df6b..9310e0cc09 100644 --- a/src/soc/nvidia/tegra210/spi.c +++ b/src/soc/nvidia/tegra210/spi.c @@ -26,9 +26,8 @@ #include <soc/addressmap.h> #include <soc/dma.h> #include <soc/spi.h> -#include <stdint.h> -#include <stdlib.h> #include <symbols.h> +#include <types.h> #if defined(CONFIG_DEBUG_SPI) && CONFIG_DEBUG_SPI # define DEBUG_SPI(x,...) printk(BIOS_DEBUG, "TEGRA_SPI: " x) |