summaryrefslogtreecommitdiff
path: root/src/soc/mediatek
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r--src/soc/mediatek/mt8188/Makefile.inc1
-rw-r--r--src/soc/mediatek/mt8188/include/soc/auxadc.h17
-rw-r--r--src/soc/mediatek/mt8188/include/soc/efuse.h17
3 files changed, 35 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8188/Makefile.inc b/src/soc/mediatek/mt8188/Makefile.inc
index 0d3dfb07d2..8db9c789a4 100644
--- a/src/soc/mediatek/mt8188/Makefile.inc
+++ b/src/soc/mediatek/mt8188/Makefile.inc
@@ -21,6 +21,7 @@ romstage-y += ../common/pmif.c ../common/pmif_clk.c pmif_clk.c
romstage-y += ../common/pmif_spi.c pmif_spi.c
romstage-y += ../common/pmif_spmi.c pmif_spmi.c
+ramstage-y += ../common/auxadc.c
ramstage-y += emi.c
ramstage-y += ../common/mcu.c
ramstage-y += ../common/mcupm.c
diff --git a/src/soc/mediatek/mt8188/include/soc/auxadc.h b/src/soc/mediatek/mt8188/include/soc/auxadc.h
new file mode 100644
index 0000000000..b8f0234b95
--- /dev/null
+++ b/src/soc/mediatek/mt8188/include/soc/auxadc.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/*
+ * This file is created based on MT8188 Functional Specification
+ * Chapter number: 5.10
+ */
+
+#ifndef SOC_MEDIATEK_MT8188_AUXADC_H
+#define SOC_MEDIATEK_MT8188_AUXADC_H
+
+#include <soc/auxadc_common.h>
+#include <soc/infracfg.h>
+#include <stdint.h>
+
+static struct mt8188_infracfg_ao_regs *const mtk_infracfg = mt8188_infracfg_ao;
+
+#endif
diff --git a/src/soc/mediatek/mt8188/include/soc/efuse.h b/src/soc/mediatek/mt8188/include/soc/efuse.h
new file mode 100644
index 0000000000..3b693f7fe2
--- /dev/null
+++ b/src/soc/mediatek/mt8188/include/soc/efuse.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef SOC_MEDIATEK_MT8188_EFUSE_H
+#define SOC_MEDIATEK_MT8188_EFUSE_H
+
+#include <soc/addressmap.h>
+#include <types.h>
+
+struct efuse_regs {
+ uint32_t reserved[107];
+ uint32_t adc_cali_reg;
+};
+
+check_member(efuse_regs, adc_cali_reg, 0x1AC);
+static struct efuse_regs *const mtk_efuse = (void *)EFUSE_BASE;
+
+#endif