[U-Boot] [PATCH v2 2/6] sunxi: axp: Move axp pmic register helpers to a separate file

Simon Glass sjg at chromium.org
Tue Apr 28 05:20:18 CEST 2015


On 26 April 2015 at 03:51, Hans de Goede <hdegoede at redhat.com> wrote:
> 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 at redhat.com>
> ---
>  arch/arm/cpu/armv7/sunxi/Makefile          |   2 +
>  arch/arm/cpu/armv7/sunxi/pmic_bus.c        |  93 ++++++++++++++++
>  arch/arm/include/asm/arch-sunxi/pmic_bus.h |  18 +++
>  drivers/power/axp221.c                     | 172 +++++++++--------------------
>  include/axp221.h                           |   7 --
>  5 files changed, 166 insertions(+), 126 deletions(-)
>  create mode 100644 arch/arm/cpu/armv7/sunxi/pmic_bus.c
>  create mode 100644 arch/arm/include/asm/arch-sunxi/pmic_bus.h

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list