summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/common/clkbuf.c (renamed from src/soc/mediatek/mt8192/clkbuf.c)3
-rw-r--r--src/soc/mediatek/common/include/soc/clkbuf.h (renamed from src/soc/mediatek/mt8192/include/soc/clkbuf.h)6
-rw-r--r--src/soc/mediatek/mt8192/Makefile.inc2
-rw-r--r--src/soc/mediatek/mt8195/Makefile.inc1
4 files changed, 7 insertions, 5 deletions
diff --git a/src/soc/mediatek/mt8192/clkbuf.c b/src/soc/mediatek/common/clkbuf.c
index 83fdb92067..735457122f 100644
--- a/src/soc/mediatek/mt8192/clkbuf.c
+++ b/src/soc/mediatek/common/clkbuf.c
@@ -5,8 +5,9 @@
#include <device/mmio.h>
#include <soc/clkbuf.h>
#include <soc/pmif.h>
+#if CONFIG(SRCLKEN_RC_SUPPORT)
#include <soc/srclken_rc.h>
-
+#endif
#define BUFTAG "[CLKBUF]"
#define buf_info(fmt, arg ...) printk(BIOS_INFO, BUFTAG "%s,%d: " fmt, \
diff --git a/src/soc/mediatek/mt8192/include/soc/clkbuf.h b/src/soc/mediatek/common/include/soc/clkbuf.h
index b5fa3a3f1b..d9bad06607 100644
--- a/src/soc/mediatek/mt8192/include/soc/clkbuf.h
+++ b/src/soc/mediatek/common/include/soc/clkbuf.h
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef SOC_MEDIATEK_MT8192_CLKBUF_H
-#define SOC_MEDIATEK_MT8192_CLKBUF_H
+#ifndef SOC_MEDIATEK_COMMON_CLKBUF_H
+#define SOC_MEDIATEK_COMMON_CLKBUF_H
#include <device/mmio.h>
@@ -66,4 +66,4 @@ DEFINE_BITFIELD(PMIC_RG_XO_VOTE, 10, 0)
int clk_buf_init(void);
-#endif /* SOC_MEDIATEK_MT8192_CLKBUF_H */
+#endif /* SOC_MEDIATEK_COMMON_CLKBUF_H */
diff --git a/src/soc/mediatek/mt8192/Makefile.inc b/src/soc/mediatek/mt8192/Makefile.inc
index e2abc5ef25..484cfb8e21 100644
--- a/src/soc/mediatek/mt8192/Makefile.inc
+++ b/src/soc/mediatek/mt8192/Makefile.inc
@@ -23,7 +23,7 @@ verstage-y += ../common/uart.c
romstage-y += ../common/auxadc.c
romstage-y += ../common/cbmem.c
-romstage-y += clkbuf.c srclken_rc.c
+romstage-y += ../common/clkbuf.c srclken_rc.c
romstage-y += ../common/dram_init.c
romstage-y += ../common/dramc_param.c
romstage-y += ../common/flash_controller.c
diff --git a/src/soc/mediatek/mt8195/Makefile.inc b/src/soc/mediatek/mt8195/Makefile.inc
index c344849702..cc855b2b81 100644
--- a/src/soc/mediatek/mt8195/Makefile.inc
+++ b/src/soc/mediatek/mt8195/Makefile.inc
@@ -20,6 +20,7 @@ verstage-y += ../common/uart.c
verstage-y += ../common/wdt.c
romstage-y += ../common/cbmem.c
+romstage-y += ../common/clkbuf.c
romstage-y += emi.c
romstage-y += ../common/flash_controller.c
romstage-y += ../common/gpio.c gpio.c