summaryrefslogtreecommitdiff
path: root/src/drivers/spi
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/spi')
-rw-r--r--src/drivers/spi/flashconsole.c2
-rw-r--r--src/drivers/spi/spi-generic.c2
-rw-r--r--src/drivers/spi/spi_flash.c2
3 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/spi/flashconsole.c b/src/drivers/spi/flashconsole.c
index 2a0d2358b9..8874812449 100644
--- a/src/drivers/spi/flashconsole.c
+++ b/src/drivers/spi/flashconsole.c
@@ -17,6 +17,8 @@
#include <fmap.h>
#include <console/console.h>
#include <console/flash.h>
+#include <stdlib.h>
+#include <types.h>
#define LINE_BUFFER_SIZE 128
#define READ_BUFFER_SIZE 0x100
diff --git a/src/drivers/spi/spi-generic.c b/src/drivers/spi/spi-generic.c
index 28402182dd..05bfb82bf8 100644
--- a/src/drivers/spi/spi-generic.c
+++ b/src/drivers/spi/spi-generic.c
@@ -14,6 +14,8 @@
#include <assert.h>
#include <spi-generic.h>
+#include <stddef.h>
+#include <stdlib.h>
#include <string.h>
int spi_claim_bus(const struct spi_slave *slave)
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index 88867fd54c..7b5266a280 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -18,11 +18,11 @@
#include <boot/coreboot_tables.h>
#include <console/console.h>
#include <cpu/x86/smm.h>
-#include <stdlib.h>
#include <string.h>
#include <spi-generic.h>
#include <spi_flash.h>
#include <timer.h>
+#include <types.h>
#include "spi_flash_internal.h"