summaryrefslogtreecommitdiffstats
path: root/include/axp221.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-04-25 14:07:37 +0200
committerHans de Goede <hdegoede@redhat.com>2015-05-04 16:51:53 +0200
commit1d624a4f08d3a478e38ceb1a048c3da4982021df (patch)
tree8efe42d4188d216469b31774a04de50659cdef66 /include/axp221.h
parent12ce15538a4512834138ee4d0ded416286ec46ad (diff)
downloadblackbird-obmc-uboot-1d624a4f08d3a478e38ceb1a048c3da4982021df.tar.gz
blackbird-obmc-uboot-1d624a4f08d3a478e38ceb1a048c3da4982021df.zip
sunxi: axp: Move axp pmic register helpers to a separate file
Move the register helpers used to access the registers via p2wi resp. rsb bus on the otherwise identical axp221 and axp223 pmics to a separate file, so that they can be used by the upcoming standalone axp gpio driver too. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'include/axp221.h')
-rw-r--r--include/axp221.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/axp221.h b/include/axp221.h
index e826ca8ac1..f62f7084ba 100644
--- a/include/axp221.h
+++ b/include/axp221.h
@@ -8,13 +8,6 @@
struct udevice;
-#define AXP221_CHIP_ADDR 0x68
-#define AXP221_CTRL_ADDR 0x3e
-#define AXP221_INIT_DATA 0x3e
-
-#define AXP223_DEVICE_ADDR 0x3a3
-#define AXP223_RUNTIME_ADDR 0x2d
-
/* Page 0 addresses */
#define AXP221_POWER_STATUS 0x00
#define AXP221_POWER_STATUS_VBUS_AVAIL (1 << 5)
OpenPOWER on IntegriCloud