summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/mediatek/common/include/soc/auxadc_common.h11
-rw-r--r--src/soc/mediatek/mt8183/include/soc/auxadc.h11
-rw-r--r--src/soc/mediatek/mt8186/include/soc/auxadc.h11
-rw-r--r--src/soc/mediatek/mt8192/include/soc/auxadc.h11
-rw-r--r--src/soc/mediatek/mt8195/include/soc/auxadc.h11
5 files changed, 11 insertions, 44 deletions
diff --git a/src/soc/mediatek/common/include/soc/auxadc_common.h b/src/soc/mediatek/common/include/soc/auxadc_common.h
index de2408fef1..b59af5c63a 100644
--- a/src/soc/mediatek/common/include/soc/auxadc_common.h
+++ b/src/soc/mediatek/common/include/soc/auxadc_common.h
@@ -3,6 +3,17 @@
#ifndef _MTK_ADC_COMMON_H
#define _MTK_ADC_COMMON_H
+struct mtk_auxadc_regs {
+ uint32_t con0;
+ uint32_t con1;
+ uint32_t con1_set;
+ uint32_t con1_clr;
+ uint32_t con2;
+ uint32_t data[16];
+ uint32_t reserved[16];
+ uint32_t misc;
+};
+
/* Return voltage in uVolt */
unsigned int auxadc_get_voltage_uv(unsigned int channel);
#endif
diff --git a/src/soc/mediatek/mt8183/include/soc/auxadc.h b/src/soc/mediatek/mt8183/include/soc/auxadc.h
index 0e07de073c..326261af32 100644
--- a/src/soc/mediatek/mt8183/include/soc/auxadc.h
+++ b/src/soc/mediatek/mt8183/include/soc/auxadc.h
@@ -7,17 +7,6 @@
#include <soc/infracfg.h>
#include <stdint.h>
-typedef struct mtk_auxadc_regs {
- uint32_t con0;
- uint32_t con1;
- uint32_t con1_set;
- uint32_t con1_clr;
- uint32_t con2;
- uint32_t data[16];
- uint32_t reserved[16];
- uint32_t misc;
-} mtk_auxadc_regs;
-
static struct mt8183_infracfg_regs *const mtk_infracfg = mt8183_infracfg;
#endif
diff --git a/src/soc/mediatek/mt8186/include/soc/auxadc.h b/src/soc/mediatek/mt8186/include/soc/auxadc.h
index 13a52e3f9d..d5f41a6b7c 100644
--- a/src/soc/mediatek/mt8186/include/soc/auxadc.h
+++ b/src/soc/mediatek/mt8186/include/soc/auxadc.h
@@ -12,17 +12,6 @@
#include <soc/infracfg.h>
#include <stdint.h>
-typedef struct mtk_auxadc_regs {
- uint32_t con0;
- uint32_t con1;
- uint32_t con1_set;
- uint32_t con1_clr;
- uint32_t con2;
- uint32_t data[16];
- uint32_t reserved[16];
- uint32_t misc;
-} mtk_auxadc_regs;
-
static struct mt8186_infracfg_ao_regs *const mtk_infracfg = mt8186_infracfg_ao;
#endif
diff --git a/src/soc/mediatek/mt8192/include/soc/auxadc.h b/src/soc/mediatek/mt8192/include/soc/auxadc.h
index 3289a22ccf..94702bd141 100644
--- a/src/soc/mediatek/mt8192/include/soc/auxadc.h
+++ b/src/soc/mediatek/mt8192/include/soc/auxadc.h
@@ -7,17 +7,6 @@
#include <soc/infracfg.h>
#include <stdint.h>
-typedef struct mtk_auxadc_regs {
- uint32_t con0;
- uint32_t con1;
- uint32_t con1_set;
- uint32_t con1_clr;
- uint32_t con2;
- uint32_t data[16];
- uint32_t reserved[16];
- uint32_t misc;
-} mtk_auxadc_regs;
-
static struct mt8192_infracfg_regs *const mtk_infracfg = mt8192_infracfg;
#endif
diff --git a/src/soc/mediatek/mt8195/include/soc/auxadc.h b/src/soc/mediatek/mt8195/include/soc/auxadc.h
index 63c8c7cd1c..6e79ee303b 100644
--- a/src/soc/mediatek/mt8195/include/soc/auxadc.h
+++ b/src/soc/mediatek/mt8195/include/soc/auxadc.h
@@ -7,17 +7,6 @@
#include <soc/infracfg.h>
#include <stdint.h>
-typedef struct mtk_auxadc_regs {
- uint32_t con0;
- uint32_t con1;
- uint32_t con1_set;
- uint32_t con1_clr;
- uint32_t con2;
- uint32_t data[16];
- uint32_t reserved[16];
- uint32_t misc;
-} mtk_auxadc_regs;
-
static struct mt8195_infracfg_ao_regs *const mtk_infracfg = mt8195_infracfg_ao;
#endif