sunxi: allow to use AXP20[39] attached to I2C0 on V3 series
authorIcenowy Zheng <icenowy@aosc.io>
Mon, 26 Oct 2020 14:19:34 +0000 (22:19 +0800)
committerAndre Przywara <andre.przywara@arm.com>
Tue, 17 Nov 2020 00:42:21 +0000 (00:42 +0000)
commit8c51c65273628a3da3c18b258cecb27835e52727
tree9d0c643a3c66bf23f694f801bcdba7de3ff4ff4a
parent6ffdc43cc5e6070edf91bac653cc8a0449dbe545
sunxi: allow to use AXP20[39] attached to I2C0 on V3 series

The reference design of Allwinner V3 series uses an
AXP203 or AXP209 PMIC attached to the I2C0 bus of the SoC, although the
first community-available V3s board, Lichee Pi Zero, omitted it.

Allow to introduce support for the PMIC on boards with it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/include/asm/arch-sunxi/gpio.h
board/sunxi/board.c
drivers/power/Kconfig