summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8173
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-05-15 21:11:39 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-05-29 20:28:56 +0000
commit27d02d8286aff64115ae593a189c38fdaf3ce769 (patch)
tree53b2eccef24a14c530b5af9d75488a1ff9147342 /src/soc/mediatek/mt8173
parentab89edbccf6e614213bbd88f5dbd5c8bf9a5d4c6 (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/mediatek/mt8173')
-rw-r--r--src/soc/mediatek/mt8173/ddp.c1
-rw-r--r--src/soc/mediatek/mt8173/pll.c3
-rw-r--r--src/soc/mediatek/mt8173/rtc.c1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/mediatek/mt8173/ddp.c b/src/soc/mediatek/mt8173/ddp.c
index 0b78c3ea64..f8896d391a 100644
--- a/src/soc/mediatek/mt8173/ddp.c
+++ b/src/soc/mediatek/mt8173/ddp.c
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <soc/addressmap.h>
#include <soc/ddp.h>
+#include <types.h>
#define RDMA_FIFO_PSEUDO_SIZE(bytes) (((bytes) / 16) << 16)
#define RDMA_OUTPUT_VALID_FIFO_THRESHOLD(bytes) ((bytes) / 16)
diff --git a/src/soc/mediatek/mt8173/pll.c b/src/soc/mediatek/mt8173/pll.c
index 7eb12b1282..e1c1bff6d5 100644
--- a/src/soc/mediatek/mt8173/pll.c
+++ b/src/soc/mediatek/mt8173/pll.c
@@ -16,11 +16,10 @@
#include <device/mmio.h>
#include <assert.h>
#include <delay.h>
-#include <stddef.h>
-
#include <soc/addressmap.h>
#include <soc/infracfg.h>
#include <soc/pll.h>
+#include <types.h>
enum mux_id {
TOP_AXI_SEL,
diff --git a/src/soc/mediatek/mt8173/rtc.c b/src/soc/mediatek/mt8173/rtc.c
index 79e5732c2f..9ad4caa89c 100644
--- a/src/soc/mediatek/mt8173/rtc.c
+++ b/src/soc/mediatek/mt8173/rtc.c
@@ -18,6 +18,7 @@
#include <soc/rtc.h>
#include <soc/mt6391.h>
#include <soc/pmic_wrap.h>
+#include <types.h>
#define RTC_GPIO_USER_MASK ((1 << 13) - (1 << 8))