summaryrefslogtreecommitdiff
path: root/include/power/max77686_pmic.h
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-04-20 20:07:46 +0200
committerSimon Glass <sjg@chromium.org>2015-05-14 18:49:38 -0600
commit52a3de5e123b3c36706b3904464a409b70e2d481 (patch)
treefe4daecccf8a33a6f5525a569c50a984543b7c29 /include/power/max77686_pmic.h
parentf37df0f877347808db1102f95839c47b92c9b3e0 (diff)
dm: pmic: add max77686 pmic driver
This is the implementation of driver model PMIC driver. The max77686 PMIC driver implements read/write operations and driver bind method - to bind its childs. This driver will try to bind the regulator devices by using it's child info array with regulator prefixes and driver names. This should succeed when compatible regulator driver is compiled. If no regulator driver found, then the pmic can still provide read/write operations, and can be used with PMIC function calls. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/power/max77686_pmic.h')
-rw-r--r--include/power/max77686_pmic.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/power/max77686_pmic.h b/include/power/max77686_pmic.h
index b0e42550a2a..95597db5032 100644
--- a/include/power/max77686_pmic.h
+++ b/include/power/max77686_pmic.h
@@ -122,11 +122,17 @@ enum {
MAX77686_REG_PMIC_BBAT = 0x7e,
MAX77686_REG_PMIC_32KHZ,
- PMIC_NUM_OF_REGS,
+ MAX77686_NUM_OF_REGS,
};
/* I2C device address for pmic max77686 */
-#define MAX77686_I2C_ADDR (0x12 >> 1)
+#define MAX77686_I2C_ADDR (0x12 >> 1)
+#define MAX77686_LDO_NUM 26
+#define MAX77686_BUCK_NUM 9
+
+/* Drivers name */
+#define MAX77686_LDO_DRIVER "max77686_ldo"
+#define MAX77686_BUCK_DRIVER "max77686_buck"
enum {
REG_DISABLE = 0,