]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: gpio: Add per-bank drive and pull setters
authorSamuel Holland <samuel@sholland.org>
Thu, 21 Oct 2021 04:52:55 +0000 (23:52 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:25:00 +0000 (01:25 +0000)
commitefdd656659e54049f5a9e31f3ff7c3f42e0e454c
treea8f079bb871c54015f38e2cb1e5b46be2552d7aa
parentac5397a21964f9d6e9206c243d53c615e2562e58
sunxi: gpio: Add per-bank drive and pull setters

The GPIO and pinctrl drivers need these setters for pin configuration.
Since they are DM drivers, they should not be using hardcoded base
addresses. Factor out variants of the setter functions which take a
pointer to the GPIO bank's MMIO registers.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/include/asm/arch-sunxi/gpio.h
arch/arm/mach-sunxi/pinmux.c