summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/include
diff options
context:
space:
mode:
authorPo Xu <jg_poxu@mediatek.com>2020-08-04 11:39:47 +0800
committerHung-Te Lin <hungte@chromium.org>2020-11-20 08:40:19 +0000
commit3f11803075cc13e377287240734cf82654f48ade (patch)
tree71cf455b55236aab0514dec6c31c31939f1e31a8 /src/soc/mediatek/common/include
parent0fd62f5b7963b2128d48aca190a93e9b94d70d13 (diff)
soc/mediatek: Move auxadc driver from MT8183 to common
The auxadc (auxiliary analogue-to-digital conversion) is a unit to identify the plugged peripherals or measure the temperature or voltages. The MT8183 auxadc driver can be shared by multiple MediaTek SoCs so we should move it to the common folder. Signed-off-by: Po Xu <jg_poxu@mediatek.com> Change-Id: Id4553e99c3578fa40e28b19a6e010b52650ba41e Reviewed-on: https://review.coreboot.org/c/coreboot/+/46390 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/common/include')
-rw-r--r--src/soc/mediatek/common/include/soc/auxadc_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/mediatek/common/include/soc/auxadc_common.h b/src/soc/mediatek/common/include/soc/auxadc_common.h
new file mode 100644
index 0000000000..de2408fef1
--- /dev/null
+++ b/src/soc/mediatek/common/include/soc/auxadc_common.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _MTK_ADC_COMMON_H
+#define _MTK_ADC_COMMON_H
+
+/* Return voltage in uVolt */
+unsigned int auxadc_get_voltage_uv(unsigned int channel);
+#endif