]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sunxi: Add I/O bias setting for H6 R-PIO
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Jul 2022 02:52:29 +0000 (21:52 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Jul 2022 09:39:33 +0000 (11:39 +0200)
commit8995f8c569bdfb135bb9ef2bb7eafd38ece4cc89
tree58008e5d1342172d2c19b842b61ec060de7fde2a
parent2b2c6c6184f890c546e9003d42c180132822722c
pinctrl: sunxi: Add I/O bias setting for H6 R-PIO

H6 requires I/O bias configuration on both of its PIO devices.
Previously it was only done for the main PIO.

The setting for Port L is at bit 0, so the bank calculation needs to
account for the pin base. Otherwise the wrong bit is used.

Fixes: e78ad27187d4 ("pinctrl: sunxi: Support I/O bias voltage setting on H6")
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220713025233.27248-3-samuel@sholland.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sun50i-h6-r.c
drivers/pinctrl/sunxi/pinctrl-sunxi.c