From 1c1f6076b9668cd04f4b13c011e72ee4e3c872f6 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Fri, 14 Aug 2015 11:36:16 +0200 Subject: Add missing part of: "power: pmic: pfuze100 support driver model" This part of mentioned commit, was missed by my mistake during the rebase. Signed-off-by: Przemyslaw Marczak Original commit message: power: pmic: pfuze100 support driver model 1. Support driver model for pfuze100. 2. Introduce a new Kconfig entry DM_PMIC_PFUZE100 for pfuze100 3. This driver intends to support PF100, PF200 and PF3000, so add the device id into the udevice_id array. 4. Rename PMIC_NUM_OF_REGS macro to PFUZE100_NUM_OF_REGS. Change-Id: I4fc88414f3c0285f9648e47ec7aed60addeccc4d Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass Reviewed-by: Simon Glass --- include/power/pfuze100_pmic.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/power/pfuze100_pmic.h') diff --git a/include/power/pfuze100_pmic.h b/include/power/pfuze100_pmic.h index 138132a696..41cb710d78 100644 --- a/include/power/pfuze100_pmic.h +++ b/include/power/pfuze100_pmic.h @@ -8,6 +8,11 @@ #ifndef __PFUZE100_PMIC_H_ #define __PFUZE100_PMIC_H_ +/* Device ID */ +enum {PFUZE100 = 0x10, PFUZE200 = 0x11, PFUZE3000 = 0x30}; + +#define PFUZE100_REGULATOR_DRIVER "pfuze100_regulator" + /* PFUZE100 registers */ enum { PFUZE100_DEVICEID = 0x00, @@ -54,7 +59,7 @@ enum { PFUZE100_VGEN5VOL = 0x70, PFUZE100_VGEN6VOL = 0x71, - PMIC_NUM_OF_REGS = 0x7f, + PFUZE100_NUM_OF_REGS = 0x7f, }; /* Registor offset based on VOLT register */ -- cgit