]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pinctrl: sunxi: support moved power configuration registers
authorAndre Przywara <andre.przywara@arm.com>
Thu, 6 Mar 2025 23:58:23 +0000 (23:58 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Mar 2025 13:48:56 +0000 (14:48 +0100)
commit6d079d93e4df90235ec15a9f11866881c2fe3a40
tree1a1bcc779d17520de517154edb7db83bb74d7824
parentc6c4dc75a1a71c45042815ce761f2c448a7afd48
pinctrl: sunxi: support moved power configuration registers

The Allwinner pincontroller IP features some registers to control the
withstand voltage of each pin group. So far those registers were always
located at the same offset, but the A523 SoC has moved them (probably to
accommodate all eleven pin banks).

Add a flag to note this feature, and use that to program the registers
either at offset 0x340 or 0x380. So far no pincontroller driver uses
this flag, but we need it for the upcoming A523 support.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/20250306235827.4895-5-andre.przywara@arm.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c
drivers/pinctrl/sunxi/pinctrl-sunxi.h