allwinner: Introduce GPIO helper function
Many boards without a dedicated PMIC contain simple regulators, which
can be controlled via GPIO pins.

To later allow turning them off easily, introduce a simple function to
configure a given pin as a GPIO out pin and set it to the desired level.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
1 parent 4ec1a23 commit 7020dca0bdad580d322839fcade8265d64a2e886
@Andre Przywara Andre Przywara authored on 14 Oct 2018
Showing 2 changed files
View
plat/allwinner/common/include/sunxi_private.h
View
plat/allwinner/common/sunxi_common.c