From bdcdf84631746f9569a4d0b0805750574c7a353a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 29 Nov 2014 23:54:25 +0100 Subject: 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 Acked-by: Ian Campbell --- include/axp221.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/axp221.h') diff --git a/include/axp221.h b/include/axp221.h index ade9066207..8df811a3a4 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 -- cgit v1.2.3