]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: axp: Move axp gpio code to a separate axpi-gpio driver
authorHans de Goede <hdegoede@redhat.com>
Sat, 25 Apr 2015 15:25:14 +0000 (17:25 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:35:20 +0000 (22:35 +0200)
commit02d6202e8e3012ffe45765c287cce628d284ee1c
treea1b132af3fbecc14281c19ab4e3d5e8e67e01106
parent3393847dc7c924b2992b8bb9582230e68722f027
sunxi: axp: Move axp gpio code to a separate axpi-gpio driver

Move the axp-gpio code out of the drivers/power/axp*.c code, and into
a new separate axpi-gpio driver.

This change drops supports for the gpio3 pin on the axp209, as that requires
special handling, and no boards are using it.

Besides cleaning things up by moving the code to a separate driver, as
a bonus this change also adds support for the (non vusb) gpio pins on the
axp221 and the gpio pins on the axp152.

The new axp-gpio driver gets its own Kconfig option, and is only enabled
on boards which need it. Besides that it only gets enabled in the regular
u-boot build and not for the SPL as we never need it in the SPL.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
23 files changed:
arch/arm/include/asm/arch-sunxi/gpio.h
board/sunxi/Kconfig
board/sunxi/board.c
configs/A13-OLinuXino_defconfig
configs/Ainol_AW1_defconfig
configs/Ampe_A76_defconfig
configs/Astar_MID756_defconfig
configs/Ippo_q8h_v1_2_a33_1024x600_defconfig
configs/Ippo_q8h_v1_2_defconfig
configs/Ippo_q8h_v5_defconfig
configs/TZX-Q8-713B7_defconfig
configs/UTOO_P66_defconfig
configs/Yones_Toptech_BD1078_defconfig
configs/forfun_q88db_defconfig
configs/iNet_86VS_defconfig
drivers/gpio/Makefile
drivers/gpio/axp_gpio.c [new file with mode: 0644]
drivers/gpio/sunxi_gpio.c
drivers/power/axp209.c
drivers/power/axp221.c
include/axp152.h
include/axp209.h
include/axp221.h