aboutsummaryrefslogtreecommitdiff
path: root/include/axp_pmic.h
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2023-01-21 17:13:04 -0600
committerAndre Przywara <andre.przywara@arm.com>2023-01-23 01:18:31 +0000
commitdc1b1d14588e1c4bfc600d299e426eefc9bd21c8 (patch)
tree4c7485985b25a93943176b6a48036521ed8efce2 /include/axp_pmic.h
parent382b8371340e06fa12ad03dc2f8e466c8c715eff (diff)
power: pmic: axp: Provide a variant ID in the driver data
Subordinate regulator drivers can use this enumerated ID instead of matching the compatible string again. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'include/axp_pmic.h')
-rw-r--r--include/axp_pmic.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/axp_pmic.h b/include/axp_pmic.h
index 01ebba6347..4ac6486583 100644
--- a/include/axp_pmic.h
+++ b/include/axp_pmic.h
@@ -26,6 +26,18 @@
#define AXP_PMIC_SEC_DEVICE_ADDR 0x745
#define AXP_PMIC_SEC_RUNTIME_ADDR 0x3a
+enum {
+ AXP152_ID,
+ AXP202_ID,
+ AXP209_ID,
+ AXP221_ID,
+ AXP223_ID,
+ AXP803_ID,
+ AXP806_ID,
+ AXP809_ID,
+ AXP813_ID,
+};
+
int axp_set_dcdc1(unsigned int mvolt);
int axp_set_dcdc2(unsigned int mvolt);
int axp_set_dcdc3(unsigned int mvolt);