aboutsummaryrefslogtreecommitdiff
path: root/include/power/pca9450.h
diff options
context:
space:
mode:
authorMarek Vasut2022-05-20 05:10:17 +0200
committerStefano Babic2022-05-20 12:36:48 +0200
commit326337fb005f968911d897867d09d1228b070d84 (patch)
tree552929853288cc724c72a983c72fda3163450ccc /include/power/pca9450.h
parent1d51e779e3f93af75516ddffd71323a503ba9fbf (diff)
pmic: pca9450: Add regulator driver
Add PCA9450 regulator driver. This is complementary driver for the BUCKn and LDOn regulators provided by the PCA9450 PMIC driver. Currently the driver permits reading the settngs and configuring the BUCKn and LDOn regulators. Reviewed-by: Fabio Estevam <festevam@denx.de> Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <festevam@denx.de> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/power/pca9450.h')
-rw-r--r--include/power/pca9450.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/power/pca9450.h b/include/power/pca9450.h
index 27703bb1f91..fa0405fcb87 100644
--- a/include/power/pca9450.h
+++ b/include/power/pca9450.h
@@ -56,4 +56,15 @@ enum {
int power_pca9450_init(unsigned char bus, unsigned char addr);
+enum {
+ NXP_CHIP_TYPE_PCA9450A = 0,
+ NXP_CHIP_TYPE_PCA9450BC,
+ NXP_CHIP_TYPE_AMOUNT
+};
+
+#define PCA9450_DVS_BUCK_RUN_MASK 0x7f
+#define PCA9450_LDO12_MASK 0x07
+#define PCA9450_LDO34_MASK 0x1f
+#define PCA9450_LDO5_MASK 0x0f
+
#endif