aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@impinj.com>2018-04-25 10:06:00 -0700
committerStefano Babic <sbabic@denx.de>2018-06-27 09:47:46 +0200
commit7da7ff54914ca58a289bd8e0fda6e7240c545826 (patch)
tree2db945759fd8b4f1f75b3ac06c43a8bce3d5d43b /include
parentfd8c1fc943017dd4d68eef5e4f996133051d3bc6 (diff)
downloadu-boot-7da7ff54914ca58a289bd8e0fda6e7240c545826.zip
u-boot-7da7ff54914ca58a289bd8e0fda6e7240c545826.tar.gz
u-boot-7da7ff54914ca58a289bd8e0fda6e7240c545826.tar.bz2
power: pmic: Let PFUZE3000 see all 256 registers
The PFUZE3000 uses registers addresses up to 0xff. The DM pfuze100 driver supports both pfuze100 and pfuze3000. Allow it to use the device type to return the correct number of registers. Also rename the too generic PMIC_NUM_OF_REGS enumeration value for pfuze3000 to match the other "PFUZE3000_" prefixed enumerations and the pfuze100 enumeration value PFUZE100_NUM_OF_REGS. Cc: Peng Fan <Peng.Fan@freescale.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Trent Piepho <tpiepho@impinj.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/power/pfuze3000_pmic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/power/pfuze3000_pmic.h b/include/power/pfuze3000_pmic.h
index 87ea7ca..b836d67 100644
--- a/include/power/pfuze3000_pmic.h
+++ b/include/power/pfuze3000_pmic.h
@@ -69,7 +69,7 @@ enum {
PFUZE3000_VLDO3CTL = 0x70,
PFUZE3000_VLD4CTL = 0x71,
- PMIC_NUM_OF_REGS = 0x7F,
+ PFUZE3000_NUM_OF_REGS = 0x100,
};
int power_pfuze3000_init(unsigned char bus);