summaryrefslogtreecommitdiff
path: root/include/axp221.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-11-29 23:54:25 +0100
committerHans de Goede <hdegoede@redhat.com>2015-01-14 14:56:36 +0100
commitbdcdf84631746f9569a4d0b0805750574c7a353a (patch)
tree0790875ee644280a6d28f7fb8239c909c468f910 /include/axp221.h
parent66ebea06f71a85552b7339d1b03ec1a092dc6c70 (diff)
downloadu-boot-imx-bdcdf84631746f9569a4d0b0805750574c7a353a.zip
u-boot-imx-bdcdf84631746f9569a4d0b0805750574c7a353a.tar.gz
u-boot-imx-bdcdf84631746f9569a4d0b0805750574c7a353a.tar.bz2
sunxi: axp221: Add axp223 support
The axp223 appears to be the same as the axp221, except that it uses the rsb to communicate rather then the p2wi. At least all the registers we use are 100% the same. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'include/axp221.h')
-rw-r--r--include/axp221.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/axp221.h b/include/axp221.h
index ade9066..8df811a 100644
--- a/include/axp221.h
+++ b/include/axp221.h
@@ -10,6 +10,10 @@
#define AXP221_CTRL_ADDR 0x3e
#define AXP221_INIT_DATA 0x3e
+#define AXP223_DEVICE_ADDR 0x3a3
+#define AXP223_RUNTIME_ADDR 0x2d
+#define AXP223_DEVICE_MODE_DATA 0x7c3e00
+
/* Page 0 addresses */
#define AXP221_CHIP_ID 0x03
#define AXP221_OUTPUT_CTRL1 0x10