summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-08-14 11:36:16 +0200
committerPrzemyslaw Marczak <p.marczak@samsung.com>2015-08-14 16:53:02 +0200
commit1c1f6076b9668cd04f4b13c011e72ee4e3c872f6 (patch)
tree8d4823d2f7dc28cd2737a00051d3fd15999dea17 /include
parentbbc1b99e8b8a1b87c2d0d959a1fcd1990abe82dd (diff)
downloadtalos-obmc-uboot-1c1f6076b9668cd04f4b13c011e72ee4e3c872f6.tar.gz
talos-obmc-uboot-1c1f6076b9668cd04f4b13c011e72ee4e3c872f6.zip
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 <p.marczak@samsung.com> 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 <Peng.Fan@freescale.com> Cc: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/power/pfuze100_pmic.h7
1 files changed, 6 insertions, 1 deletions
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 */
OpenPOWER on IntegriCloud