]> git.baikalelectronics.ru Git - uboot.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)
commit2c90f340e25e04ad352673d0810fbcfeaae03a68
treea8f079bb871c54015f38e2cb1e5b46be2552d7aa
parent4bbfa9564405cbfb30fddaa3468f76945dac52d1
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