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>
This commit is contained in:
Elyes HAOUAS 2020-07-22 11:43:47 +02:00 committed by Patrick Georgi
parent 56e889cedb
commit 553a22e316
5 changed files with 5 additions and 4 deletions

View File

@ -3,9 +3,7 @@
#ifndef __AMDBLOCK_GPIO_BANKS_H__ #ifndef __AMDBLOCK_GPIO_BANKS_H__
#define __AMDBLOCK_GPIO_BANKS_H__ #define __AMDBLOCK_GPIO_BANKS_H__
#include <stdint.h> #include <types.h>
#include <stdbool.h>
#include <stddef.h>
struct soc_amd_gpio { struct soc_amd_gpio {
uint8_t gpio; uint8_t gpio;

View File

@ -3,7 +3,7 @@
#ifndef __AMDBLOCKS_SPI_H__ #ifndef __AMDBLOCKS_SPI_H__
#define __AMDBLOCKS_SPI_H__ #define __AMDBLOCKS_SPI_H__
#include <stdint.h> #include <types.h>
#define SPI_CNTRL0 0x00 #define SPI_CNTRL0 0x00
#define SPI_BUSY BIT(31) #define SPI_BUSY BIT(31)

View File

@ -8,6 +8,7 @@
#include <device/pci_ops.h> #include <device/pci_ops.h>
#include <lib.h> #include <lib.h>
#include <timer.h> #include <timer.h>
#include <types.h>
#define GRANULARITY_TEST_4k 0x0000f000 /* bits 15-12 */ #define GRANULARITY_TEST_4k 0x0000f000 /* bits 15-12 */
#define WORD_TO_DWORD_UPPER(x) ((x << 16) & 0xffff0000) #define WORD_TO_DWORD_UPPER(x) ((x << 16) & 0xffff0000)

View File

@ -3,6 +3,7 @@
#ifndef __PICASSO_I2C_H__ #ifndef __PICASSO_I2C_H__
#define __PICASSO_I2C_H__ #define __PICASSO_I2C_H__
#include <types.h>
#include <soc/gpio.h> #include <soc/gpio.h>
struct soc_amd_i2c_save { struct soc_amd_i2c_save {

View File

@ -3,6 +3,7 @@
#ifndef __STONEYRIDGE_I2C_H__ #ifndef __STONEYRIDGE_I2C_H__
#define __STONEYRIDGE_I2C_H__ #define __STONEYRIDGE_I2C_H__
#include <types.h>
#include <soc/gpio.h> #include <soc/gpio.h>
struct soc_amd_i2c_save { struct soc_amd_i2c_save {