summaryrefslogtreecommitdiffstats
path: root/plat/mediatek/mt8186/drivers/pmic/pmic.h
diff options
context:
space:
mode:
Diffstat (limited to 'plat/mediatek/mt8186/drivers/pmic/pmic.h')
-rw-r--r--plat/mediatek/mt8186/drivers/pmic/pmic.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/plat/mediatek/mt8186/drivers/pmic/pmic.h b/plat/mediatek/mt8186/drivers/pmic/pmic.h
new file mode 100644
index 0000000..91ccb19
--- /dev/null
+++ b/plat/mediatek/mt8186/drivers/pmic/pmic.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2021, MediaTek Inc. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef PMIC_H
+#define PMIC_H
+
+#include <stdint.h>
+
+#define PMIC_RG_HWCID_ADDR 0x8
+#define PMIC_PWRHOLD 0xa08
+
+/* external API */
+uint32_t pmic_get_hwcid(void);
+void pmic_power_off(void);
+
+#endif /* PMIC_H */