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>
This commit is contained in:
Samuel Holland
2023-01-21 17:13:04 -06:00
committed by Andre Przywara
parent 382b837134
commit dc1b1d1458
2 changed files with 21 additions and 9 deletions

View File

@@ -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);