summaryrefslogtreecommitdiffstats
path: root/include/power
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-14 21:03:26 -0600
committerTom Warren <twarren@nvidia.com>2015-05-13 09:24:07 -0700
commitd55b7d4c53c78d4a4fbe28b65e8d50f184b53ce9 (patch)
tree58fcbe45288e7a9e346783f613488c79177f4881 /include/power
parentec7466443432966db95ed2324732ee810bfa8229 (diff)
downloadblackbird-obmc-uboot-d55b7d4c53c78d4a4fbe28b65e8d50f184b53ce9.tar.gz
blackbird-obmc-uboot-d55b7d4c53c78d4a4fbe28b65e8d50f184b53ce9.zip
power: Export register access functions from as3722
With the full PMIC framework we may be able to avoid this. But for now we need access to the PMIC. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/power')
-rw-r--r--include/power/as3722.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/power/as3722.h b/include/power/as3722.h
index aa966d2cca..0f22482ff7 100644
--- a/include/power/as3722.h
+++ b/include/power/as3722.h
@@ -23,5 +23,8 @@ int as3722_gpio_configure(struct udevice *pmic, unsigned int gpio,
unsigned long flags);
int as3722_gpio_direction_output(struct udevice *pmic, unsigned int gpio,
unsigned int level);
+int as3722_read(struct udevice *pmic, u8 reg, u8 *value);
+int as3722_write(struct udevice *pmic, u8 reg, u8 value);
+int as3722_get(struct udevice **devp);
#endif /* __POWER_AS3722_H__ */
OpenPOWER on IntegriCloud