summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/mediatek/common/include/soc/regulator.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/soc/mediatek/common/include/soc/regulator.h b/src/soc/mediatek/common/include/soc/regulator.h
new file mode 100644
index 0000000000..258d5503f1
--- /dev/null
+++ b/src/soc/mediatek/common/include/soc/regulator.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef SOC_MEDIATEK_COMMON_REGULATOR_H
+#define SOC_MEDIATEK_COMMON_REGULATOR_H
+
+#include <stdint.h>
+
+enum mtk_regulator {
+ MTK_REGULATOR_VDD1,
+ MTK_REGULATOR_VDD2,
+ MTK_REGULATOR_VDDQ,
+ MTK_REGULATOR_VMDDR,
+};
+
+void mainboard_set_regulator_vol(enum mtk_regulator regulator,
+ uint32_t voltage_uv);
+uint32_t mainboard_get_regulator_vol(enum mtk_regulator regulator);
+
+#endif /* SOC_MEDIATEK_COMMON_REGULATOR_H */