summaryrefslogtreecommitdiff
path: root/src/soc/amd/common
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-07-22 11:43:47 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-28 19:29:01 +0000
commit553a22e316e00d81e0a70afe3272c7b33a0bc571 (patch)
treea2343b7a8e8ce96e0e24db27c7667ac7eebfecf6 /src/soc/amd/common
parent56e889cedb824cae3590806be48e687dad3d9ac5 (diff)
downloadcoreboot-553a22e316e00d81e0a70afe3272c7b33a0bc571.tar.xz
src/soc/amd: Add include <types.h>
BIT(x) needs <types.h>. Change-Id: Icaeda969cae52d9c62d976db4ead0e734efa838c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43706 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/amd/common')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/gpio_banks.h4
-rw-r--r--src/soc/amd/common/block/include/amdblocks/spi.h2
-rw-r--r--src/soc/amd/common/block/spi/fch_spi_ctrl.c1
3 files changed, 3 insertions, 4 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/gpio_banks.h b/src/soc/amd/common/block/include/amdblocks/gpio_banks.h
index 11e1246e67..fdcd0f8ae4 100644
--- a/src/soc/amd/common/block/include/amdblocks/gpio_banks.h
+++ b/src/soc/amd/common/block/include/amdblocks/gpio_banks.h
@@ -3,9 +3,7 @@
#ifndef __AMDBLOCK_GPIO_BANKS_H__
#define __AMDBLOCK_GPIO_BANKS_H__
-#include <stdint.h>
-#include <stdbool.h>
-#include <stddef.h>
+#include <types.h>
struct soc_amd_gpio {
uint8_t gpio;
diff --git a/src/soc/amd/common/block/include/amdblocks/spi.h b/src/soc/amd/common/block/include/amdblocks/spi.h
index 576f0c6231..b0080dae8e 100644
--- a/src/soc/amd/common/block/include/amdblocks/spi.h
+++ b/src/soc/amd/common/block/include/amdblocks/spi.h
@@ -3,7 +3,7 @@
#ifndef __AMDBLOCKS_SPI_H__
#define __AMDBLOCKS_SPI_H__
-#include <stdint.h>
+#include <types.h>
#define SPI_CNTRL0 0x00
#define SPI_BUSY BIT(31)
diff --git a/src/soc/amd/common/block/spi/fch_spi_ctrl.c b/src/soc/amd/common/block/spi/fch_spi_ctrl.c
index 1e0c31ab27..565fdbe149 100644
--- a/src/soc/amd/common/block/spi/fch_spi_ctrl.c
+++ b/src/soc/amd/common/block/spi/fch_spi_ctrl.c
@@ -8,6 +8,7 @@
#include <device/pci_ops.h>
#include <lib.h>
#include <timer.h>
+#include <types.h>
#define GRANULARITY_TEST_4k 0x0000f000 /* bits 15-12 */
#define WORD_TO_DWORD_UPPER(x) ((x << 16) & 0xffff0000)