]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: sunxi: add new D1 pinctrl support
authorAndre Przywara <andre.przywara@arm.com>
Tue, 6 Sep 2022 11:12:50 +0000 (12:12 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 22 Oct 2023 22:40:57 +0000 (23:40 +0100)
commit452369cd0c636123321d021298b4bc35a34f4941
tree01f0f7a988e220f3e025a3811144a2c00f468cde
parent1da48c99de18490a69c467df6c4a71701ac47fb1
pinctrl: sunxi: add new D1 pinctrl support

For the first time since at least the Allwinner A10 SoCs, the D1 (and
related cores) use a new pincontroller MMIO register layout, so we
cannot use our hardcoded, fixed offsets anymore.
Ideally this would all be handled by devicetree and DM drivers, but for
the DT-less SPL we still need the legacy interfaces.

Add a new Kconfig symbol to differenciate between the two generations of
pincontrollers, and just use that to just switch some basic symbols.
The rest is already abstracted enough, so works out of the box.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Sam Edwards <CFSworks@gmail.com>
Tested-by: Sam Edwards <CFSworks@gmail.com>
Tested-by: Samuel Holland <samuel@sholland.org>
drivers/gpio/Kconfig
drivers/gpio/sunxi_gpio.c
include/sunxi_gpio.h