]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: sunxi: add GPIO in/out wrappers
authorAndre Przywara <andre.przywara@arm.com>
Tue, 6 Sep 2022 09:07:18 +0000 (10:07 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:40:56 +0000 (23:40 +0100)
commit316ec7ffbd52b3e3d7ddcb0618f231c1ded28bf2
treedf1e0e16d9148e723e06a733d05ca1461be7a390
parent20b78c55e74dc69a2530c7b76c0912777197caf5
pinctrl: sunxi: add GPIO in/out wrappers

So far we were open-coding the pincontroller's GPIO output/input access
in each function using that.

Provide functions that wrap that nicely, and follow the existing pattern
(set/get_{bank,}), so users don't need to know about the internals, and
we can abstract the new D1 pinctrl more easily.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Samuel Holland <samuel@sholland.org>
drivers/gpio/sunxi_gpio.c