summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/common/spi.c2
-rw-r--r--src/soc/mediatek/mt8173/flash_controller.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/mediatek/common/spi.c b/src/soc/mediatek/common/spi.c
index 1af6f105c3..40ab9b7002 100644
--- a/src/soc/mediatek/common/spi.c
+++ b/src/soc/mediatek/common/spi.c
@@ -17,10 +17,10 @@
#include <assert.h>
#include <console/console.h>
#include <endian.h>
-#include <stdlib.h>
#include <soc/pll.h>
#include <soc/spi.h>
#include <timer.h>
+#include <types.h>
#define MTK_SPI_DEBUG 0
diff --git a/src/soc/mediatek/mt8173/flash_controller.c b/src/soc/mediatek/mt8173/flash_controller.c
index bca2ecf98d..b491a41efd 100644
--- a/src/soc/mediatek/mt8173/flash_controller.c
+++ b/src/soc/mediatek/mt8173/flash_controller.c
@@ -21,12 +21,12 @@
#include <spi_flash.h>
#include <spi-generic.h>
#include <stdint.h>
-#include <stdlib.h>
#include <string.h>
#include <symbols.h>
#include <timer.h>
#include <soc/symbols.h>
#include <soc/flash_controller.h>
+#include <types.h>
#define get_nth_byte(d, n) ((d >> (8 * n)) & 0xff)