]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: axp: Move axp pmic register helpers to a separate file
authorHans de Goede <hdegoede@redhat.com>
Sat, 25 Apr 2015 12:07:37 +0000 (14:07 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 May 2015 14:51:53 +0000 (16:51 +0200)
commit1d624a4f08d3a478e38ceb1a048c3da4982021df
tree8efe42d4188d216469b31774a04de50659cdef66
parent12ce15538a4512834138ee4d0ded416286ec46ad
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>
arch/arm/cpu/armv7/sunxi/Makefile
arch/arm/cpu/armv7/sunxi/pmic_bus.c [new file with mode: 0644]
arch/arm/include/asm/arch-sunxi/pmic_bus.h [new file with mode: 0644]
drivers/power/axp221.c
include/axp221.h